|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^2: How can I generate a pdf from html with css?by LanX (Saint) |
| on Feb 16, 2009 at 21:49 UTC ( [id://744218]=note: print w/replies, xml ) | Need Help?? |
|
> HTML does not even have a concept of page-length, so how would you reliably split your HTML-"pages" into PDF-pages.
Well CSS2 has separate "@media" styles which you can be used for printing. This has a concept of page-length!!! But AFAIK that's only supported by browsers and you have to fiddle around with preset browsersettings like pagemargins and pagenumber and so on... not really a reliable approach for server programming. Anyway I'm using this for printing¹ some private html-pages with firefox... Cheers Rolf (¹) ...and of course I can also directly print to a PDF-file.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||