3 ms·
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 com
by patio11 12y 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.
- lorennorman 12y agoThanks 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.