Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#825370
The signatory part of the document appears in 2 pages, when it should be placed in 1 page only. Is there a way to check if the signatory part will fit in the remaining space of the current page? If not, place it on the next page.

I can't force the entire signatory portion to the next page as it will depend on how much data I have on the current page.
Output sig doc.jpg
Output sig doc.jpg (30.49 KiB) Viewed 837 times
#825387
Unfortunately, there isn't any way to calculate the amount of space that remains in a template file.
You can try using this HTML code in your template file to keep the signature paragraph together.
<p style="page-break-inside:avoid;">Your signature here</p>
or this:
<div style="page-break-inside:avoid;">Your signature here</div>

However, if you want to emguarantee that everything fits on one page, the only solution is to use smaller font or less space between the lines in your HTML code. For example, you could use this CSS in all the paragraphs in your template:
<p style="margin-bottom:4px; line-height:95%;font-size:90%">text here</p>
Amosbatto, PMUsers.com is down.

It would be nice if ProcessMaker can let us know w[…]

Hi, What is your server config? Is your server Wi[…]

Hi, It's not possible, because processmaker set s[…]

Filtering Grids For Parallel Tasks

Hi, You must create a grid for example @=tempGrid[…]