This topic is locked

html2ps PDF Directives

2/21/2014 11:02:50 AM
PHPRunner General questions
S
shathcock author

Ok so I have everything working on my site except adding page breaks to my reports which I can do in IE but not Firefox or Chrome. So I added the PDF option and it works fine except for page breaks. I looked the the html2ps documentation and said that I could put one of 3 directives into my HTML and it would force a page break into the the pdf document. It didn't work so I took a look at the source that was produced and my <!--NewPage--> directive wasn't there. Looked back at the HTML source in phpr and it was gone. Simple question I guess is there a way to keep PHPR from deleting my directive in the source code?

Sergey Kornilov admin 2/21/2014

I'm afraid you cannot use html2ps directives here.
You can though modify printer-friendly page in Visual Editor inserting the following code snippet where you need a page beak:

<P style="PAGE-BREAK-AFTER: always"></P>
S
shathcock author 2/21/2014



I'm afraid you cannot use html2ps directives here.
You can though modify printer-friendly page in Visual Editor inserting the following code snippet where you need a page beak:

<P style="PAGE-BREAK-AFTER: always"></P>



Thanks, I have tried that and it works fine in IE but not chrome or firefox and doesn't put the page breaks in PDF either. I was trying to make an app that would work in any browser and I have to have page breaks. Any other idea would be helpful.

Sergey Kornilov admin 2/21/2014

I would ask you post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.
We'll see what we can do.