Hacker News new | ask | show | jobs
by patio11 4129 days ago
Stick with Prawn, as it is sanity saving for this task. For web based previews, use GraphicsMagick and Postscript to turn the PDF into a gif or image. One command line, takes half a second. Saves you from doing CSS hell on layout, where the preview pixel wise matching the print data really matters for your app.
1 comments

Thanks for the tip, Patrick! I had heard the html->pdf tools were pretty good, but you're absolutely right about the pixel precision needs. I got my Prawn setup into a reasonable state pretty early, and it's be Mostly Fine, Just Fine.