iclems / iOS-htmltopdf

MIT License
305 stars 79 forks source link

Balnk page because of page-break trough CSS #26

Open yveveke opened 9 years ago

yveveke commented 9 years ago

I don't know if the bug is in uiwebview or in this library. But I've put div's in my html-code with a class pagebreak. It does a page break, but with an extra blank page. How do I get rid of the blank page.


    @media all {
        .pagebreak  { display: none; }
    }

    @media print {
        .pagebreak  { display: block; page-break-before: always; }
    }
iclems commented 9 years ago

Have you checked what happens in Chrome / Safari with the exact same content? It may be related with your CSS.

skela commented 9 years ago

May be relevant so posting it here, if this approach causes problems, how would one go about adding a page break correctly that works with NDHTMLtoPDF's approach?

navjotdhanawat commented 7 years ago

Some time PDF generated got partially blank.

Please help.

Its urgent

Thanks in Advance!!!