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

page breaks #28

Open
barryparkin opened this issue Jun 18, 2015 · 4 comments
Open

page breaks #28

barryparkin opened this issue Jun 18, 2015 · 4 comments

Comments

@barryparkin
Copy link

CSS rule page-break-after seems to cause
[self prepareForDrawingPages: NSMakeRange(0, self.numberOfPages)];
to get caught in a loop until memory exhaustion.

CSS rule page-break-before works perfectly.

Might be worth a note in the readme explaining this.

@jacobmitchinson
Copy link

Hi I'm having similar issues with page breaks. iOS-htmltopdf seems to create a large amount of whitespace after the page break. Any ideas how to fix this? @iclems

@iclems
Copy link
Owner

iclems commented Sep 1, 2015

Sorry, I don't have any specific info about this. If you do figure out a fix, please let us know

@Drusy
Copy link

Drusy commented Apr 5, 2016

It seems that using break-after instead of page-break-after is doing the job. page-break-before is also working for me but is inserting a white page "before" the breaking...

@Chrichton
Copy link

Chrichton commented Nov 19, 2018

Unfortunately I have got the same problem:
page-break-before is also working for me but is inserting a white page "before" the breaking...
But break-after doesn't do anything at all. I doesn't any breaking.
@Drusy: how exactly did you use break-after?

What am I to do?
Thanks for any reply

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

5 participants