Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balnk page because of page-break trough CSS #26

Open
yveveke opened this issue Nov 4, 2014 · 3 comments
Open

Balnk page because of page-break trough CSS #26

yveveke opened this issue Nov 4, 2014 · 3 comments

Comments

@yveveke
Copy link

yveveke commented Nov 4, 2014

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
Copy link
Owner

iclems commented Nov 24, 2014

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

@skela
Copy link

skela commented Jun 2, 2015

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
Copy link

Some time PDF generated got partially blank.

Please help.

Its urgent

Thanks in Advance!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants