Welcome! Log In Create A New Profile

Advanced

<div style="page-break-after: always"> not working

Posted by callen 
<div style="page-break-after: always"> not working
May 10, 2011 07:22AM
Hi,

I'm trying to use <div style="page-break-after: always"></div> to add page breaks in my pdf files. It doesn't seem to work - help!

I will email you an example html file to info@pdfcrowd.com. FYI, I am using these pdf crowd settings in my php code:

$client->setPageWidth("210mm");
$client->setPageHeight("297mm");
$client->setHorizontalMargin("10mm");
$client->setVerticalMargin("5mm");
Thanks, Charles.
Re: <div style="page-break-after: always"> not working
June 15, 2011 01:06AM
I am also having an issue with this. The snippet:

.....

</td></tr></table></div><div style='page-break-after:always;'>&nbsp;</div><table width=725px><tr><td>
....
Does not break the page between the tables.
Re: <div style="page-break-after: always"> not working
June 15, 2011 01:14AM
Please, could you post complete code of your document or send it to info@pdfcrowd.com?

Here is a working example which inserts a page break between two tables. You can try it out here
<table>
<tr><td>table1</td></tr>
</table>
<div style='page-break-after:always;'>&nbsp;</div>
<table>
<tr><td>table2</td></tr>
</table>
Re: <div style="page-break-after: always"> not working
June 16, 2011 12:26AM
Support thanks for the reply. The full file is 3 meg - is there an alternative way to send?
Re: <div style="page-break-after: always"> not working
June 16, 2011 12:39AM
Just zip the HTML file and send it to info@pdfcrowd.com
Sorry, only registered users may post in this forum.

Click here to login