Page break in Html2Pdf
i just figured this out after having the same problem. the parser that they use DOES support the page-break-after tag, but the html2pdf does not work.
i think i have it working by doing the following modifications to html2pdf.class:
around line 4174, the first thing inside:
protected function _tag_close_P($param){
should be:
if($this->parsingCss->value['page-break-after'] == "always")
$this->_setNewPage();
around line 2961, the first thing inside:
protected function _tag_close_DIV($param, $other='div'){
should be:
if($this->parsingCss->value['page-break-after'] == "always")
$this->_setNewPage();
JsPdf page break not working
JsPDF
uses a special HTML tag...
<!--ADD_PAGE-->
...to force a page-break.
Please note that this only applies if using the addHTML
method.
I had this exact problem and throwing in the tag worked perfectly.
Related Topics
Processing Multidimensional JSON Array with PHP
Mysql: Determine Table's Primary Key Dynamically
Is There Any Legitimate Use for Bare Strings in PHP
Parse Error: Syntax Error, Unexpected '.', Expecting ',' or ';'
Counting Values in Multidimensional Array
Change Cart Item Prices Based on Custom Cart Item Data in Woocommerce
Laravel Access Denied for User 'Root'@'Localhost' (Using Password: Yes) in Laravel 4.2
How to Make PHP Curl Request with Port Number
Find and Replace Keywords by Hyperlinks in an HTML Fragment, via PHP Dom
Doctrine: Update Discriminator for Single_Table Inheritance
How to Add a View Helper Directory (Zend Framework)
Pull Random Line from Txt File as String
Format 32-Character String with Hyphens to Become Uuid
Symfony 3 - an Exception Occurred in Driver: Could Not Find Driver