Page 1 of 1

[SOLVED] PAGE BREAKS DOC AND PDF OUTPUT DOCUMENTS

Posted: Fri Mar 13, 2020 7:45 am
by jemiris
Hi,
I'm using processmaker version 3.1.3 the page breaks is not working by adding this code for both pdf and doc
Code: Select all
<style>
.pageBreak { page-break-before: always; }
</style>

<br class="pageBreak">
I have solved by trying this code.
To:
Add this code in trigger.
Code: Select all
@@pageBreak = '<p style="page-break-before: always;">';
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <style>
        .pageBreak { page-break-before: always !important; }
        </style>
    </head>
    <body>
		<p align="center">
			<br class="pageBreak"/>
			@#pageBreak
		</p>
	</body>
</html>
Note: This works well for me PDF and DOC. Here i have add two page break one page break works for the pdf another DOC. Someone will get help by this reference.

Thanks
Jemiris S

Re: [SOLVED] PAGE BREAKS DOC AND PDF OUTPUT DOCUMENTS

Posted: Tue Apr 21, 2020 12:19 pm
by RicardoMG
Hello!

Exactly that is the solution, for more information about it you can check the documentation of the ProcessMaker about this point! The link is the following:
https://wiki.processmaker.com/3.0/Output_Documents#Inserting_Page_Breaks

Best regards, Ricardo.

Re: [SOLVED] PAGE BREAKS DOC AND PDF OUTPUT DOCUMENTS

Posted: Wed Apr 22, 2020 3:32 am
by jemiris
Thanks for the updates