Reputation: 478
I want to generate PDF in rails application. I had saw different options for doing this but I want all data needed for PDF should be collected in a format (mostly XML) such that it can be utilized by my rails application for generating the reports as well as be consumed by other applications( Web Service) The data I have use for generating PDf it comes from different object and basically it contains images and graphs. Data volume is also big
I want to generate PDF with proper style and layout. Can anybody suggest me the best option I can use in my rails application to achieve above problem
Upvotes: 0
Views: 491
Reputation: 6581
If using an online/cloud service is an option, you might want to look at Docmosis. It can generate PDFs using a rest interface and has at least one Ruby example. Please note I work for the company that created Docmosis.
Upvotes: 1
Reputation: 7111
Prawn or PDFKit seem to be the two most popular right now. Each has their ups and downs depending on what you are trying to do and the styles they want to apply. For PDFKit here is an article talking about how it integrates with Rails
Upvotes: 2