Pdfkit
prawn-rails
Our great sponsors
Pdfkit | prawn-rails | |
---|---|---|
4 | 1 | |
2,919 | 142 | |
0.3% | - | |
2.5 | 4.1 | |
8 months ago | 4 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Pdfkit
-
Working with PDFs in Ruby
Like the WickedPDF gem, the PDFkit gem uses wkhtmltopdf on the backend to convert plain HTML and CSS files into PDF documents.
-
Solve network errors with PDFKit and wkhtmltopdf
In today's #10stips (where you learn how to solve coding issues within 10 seconds) we talk about the lovely PDFKit gem.
-
Good resources to learn how to dynamically generate pdf's in Rails ?
Alternatively, there tools like pdfkit if you want to build off HTML pages (and are happy to deal with wkhtmltopdf and it's older style CSS).
-
Converting HTML to PDF using Rails
A couple of popular gems to convert HTML to PDF in Rails are PDFKit and WickedPDF. They both use a command line utility called wkhtmltopdf under the hood; which uses WebKit to render a PDF from HTML.
prawn-rails
-
Good resources to learn how to dynamically generate pdf's in Rails ?
You can build PDF using prawn-rails if you prefer a declarative approach (and don't mind using GPLed code).
What are some alternatives?
Wicked Pdf - PDF generator (from HTML) plugin for Ruby on Rails
kramdown - kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
puppeteer - Node.js API for Chrome
asciidoctor-pdf - :page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
Prawn - Fast, Nimble PDF Writer for Ruby
WKHTMLToPDF - Convert HTML to PDF using Webkit (QtWebKit)
HexaPDF - Versatile PDF creation and manipulation for Ruby
CombinePDF - A Pure ruby library to merge PDF files, number pages and maybe more...
Grover - A Ruby gem to transform HTML into PDFs, PNGs or JPEGs using Google Puppeteer/Chromium
Gimli - Utility for converting markup files to pdf files