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

Moderators: ArturoRobles, ArturoRobles

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.
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 1326 times
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>

Hi, I have around 100 variables in master process […]

Install in ubuntu

Nov 8, 2014 — You can install applications d[…]

Hi, The form.setOnchange() method does NOT work w[…]


Hi, You can easily change your forms like this eve[…]