A Ruby on Rails plugin that generates PDF files from HTML views using wkhtmltopdf.
Wicked PDF is a Ruby on Rails plugin that generates PDF documents from HTML views. It uses the wkhtmltopdf utility to convert HTML, CSS, and JavaScript into PDF format, solving the need for programmatic PDF creation within Rails applications without requiring developers to learn a separate PDF DSL.
Ruby on Rails developers who need to generate PDF reports, invoices, or documents from their application's views and templates.
Developers choose Wicked PDF because it integrates directly with Rails, uses standard HTML templates, and provides extensive customization options through wkhtmltopdf, making PDF generation straightforward and flexible.
PDF generator (from HTML) plugin for Ruby on Rails
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Seamlessly integrates with Rails controllers via respond_to blocks and render options, making it straightforward to add PDF endpoints to existing views.
Lets developers use standard HTML, CSS, and JavaScript for PDF creation, avoiding the need to learn a separate PDF DSL.
Exposes numerous wkhtmltopdf settings for headers, footers, margins, and more, allowing fine-grained control over PDF output.
Provides helpers like wicked_pdf_stylesheet_link_tag that work with Rails asset pipeline and Webpacker, though with some complexities.
Relies on wkhtmltopdf, which must be installed and maintained separately, leading to deployment headaches across different platforms.
Requires special helpers or base64 encoding for assets, and precompilation is necessary in production, often causing bugs if not configured correctly.
Executes shell commands and accesses local files, posing risks if user-generated content is included without sanitization, as noted in the README.