Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
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 2747 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>
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]