Man, I LOVE wkhtmltopdf. It's an excellent, quick-n-dirty way to get your site into a PDF. There's some caveats, though:
- Want to do columns? You're screwed! It uses WebKit as the rendering engine, so any columns you specify will go WELL past the page break before they wrap, and looking HORRIFYIN'.
- If your fonts aren't set up perfectly, expect some super-ugly text (jaggies, etc).
- You will have to play with it for quite a while if you want to do anything fancy with headers, and you'll likely have to settle for something less ambitious than you started with.
- Have Unicode in your source HTML files? Hope you're comfortable with how that all works, or are cool with transliteralisation. Or cool with all kinds of #?^s through your files.
For anything heavy-duty, I'd recommend biting the bullet and using FPDF or a heavy-duty PDF creation library. But for quick and easy, wkhtmltopdf is excellent.
- Want to do columns? You're screwed! It uses WebKit as the rendering engine, so any columns you specify will go WELL past the page break before they wrap, and looking HORRIFYIN'.
- If your fonts aren't set up perfectly, expect some super-ugly text (jaggies, etc).
- You will have to play with it for quite a while if you want to do anything fancy with headers, and you'll likely have to settle for something less ambitious than you started with.
- Have Unicode in your source HTML files? Hope you're comfortable with how that all works, or are cool with transliteralisation. Or cool with all kinds of #?^s through your files.
For anything heavy-duty, I'd recommend biting the bullet and using FPDF or a heavy-duty PDF creation library. But for quick and easy, wkhtmltopdf is excellent.