iclems / iOS-htmltopdf

MIT License
305 stars 79 forks source link

page breaks #28

Open barryparkin opened 9 years ago

barryparkin commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

Drusy commented 8 years ago

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 commented 5 years ago

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