[LRUG] Best way to generate a PDF

Mooktakim Ahmed mooktakim at fluxter.co.uk
Tue Feb 12 07:12:29 PST 2013


Hey,

Recently i have used https://github.com/pdfkit/PDFKit. One good thing about
it is that you can set it up as a middleware which translates HTML into PDF
just by going to the .pdf extension.
It might not be good fit for you. But for me, it was a nice way to quickly
get PDF generation working, without adding too much messy code. Especially
good if you need to convert HTML to PDF.


Regards,
Mooktakim Ahmed


On 12 February 2013 15:06, Luke Saunders <luke at sketchconsulting.com> wrote:

> Hi LRUG
>
> Can anyone with recent experience in this recommend the best tool to use
> in order to generate a PDF from a Ruby (Rails) app?
>
> Said PDF will be an A4 document, with a title page, followed by 5-10
> content pages each with a standard header / footer including page numbers.
> Content pages consist of headings and paragraphs, along with some embedded
> images.
>
> I used prawn <https://github.com/prawnpdf/prawn> once to generate a
> business card sized PDF and that was fine, but I'm wondering if perhaps a
> markup, maybe like LaTeX would be wise to generate this kind of doc.
>
> Keen to make the right choice and I think making the wrong choice could
> eat a lot of time here.
>
> Thanks!
> Luke.
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130212/0f8fc673/attachment.html>


More information about the Chat mailing list