My project entails some modfication of dompdf (http://www.digitaljunkies.ca/dompdf/) to allow for me to check what the last line is on a page and if it meets certain requirements either do a page break before it or modify the line depending on a particular setting. After you peruse the attached “content.php” file you should understand the following:
If the page ends with a div with class of charName do page break.
Then the two options based on user preference:
If the page splits a div with class of dialog insert (more) at after split on first page, and insert (CONT’D) before the remainder of the content on the second page.
OR
If the page splits a div with class of dialog move current dialog div and previous charName div to the next page (page break before charName div).
NOTE: The dynamic content will always be in the form presented in the content.php file.
I have also attached my dompdf config file (go_print.ctp) so you can get a sense of the layout I have currently.
