RaspberryPiFoundation / lesson_format

Lesson formatter
17 stars 28 forks source link

Autogenerated PDFs missing headers on all but the first page #92

Closed andylolz closed 9 years ago

andylolz commented 9 years ago

The header on lesson PDFs should be big on the first page, but smaller on subsequent pages. This is difficult to achieve in phantom.js / wkhtmltopdf. Variable sized headers don’t appear to be possible, and detecting page breaks is also tricky.

codecleaner commented 9 years ago

I'm not sure, but maybe this will help: http://www.w3.org/TR/css3-gcpm/#running-elements

codecleaner commented 9 years ago

I've tested it, and it doesn't work in Chrome so I think in phantomjs also... :(

andylolz commented 9 years ago

Yep – I tried this in phantom and wkhtmltopdf too. I don’t think this issue can be solved with css I’m afraid :(

I think this one might have to be marked as WONTFIX. I’ve tried a few things, and I’m really not sure there’s a simple way to do it.