Creating PDFs in a Ruby on Rails application

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Zigi - Delete the most useless function ever: context switching.
  • Prawn

    Fast, Nimble PDF Writer for Ruby

    You have a few options when trying to create a PDF in a Rails environment. Prawn and Wicked PDF have been around for quite a while. I have been using both gems and they work fine. However, they have a few limitations that can make it difficult to handle more complex PDFs. I recently discovered Grover, which can remediate some of this inflexibility in creating PDFs.

  • view_component

    A framework for building reusable, testable & encapsulated view components in Ruby on Rails.

    In fact you can save any existing view as PDF, allowing you to reuse your current HTML and/or CSS framework. You can use Tailwind for your CSS or ViewComponent to display your components and print them to PDF.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • Wicked Pdf

    PDF generator (from HTML) plugin for Ruby on Rails

    You have a few options when trying to create a PDF in a Rails environment. Prawn and Wicked PDF have been around for quite a while. I have been using both gems and they work fine. However, they have a few limitations that can make it difficult to handle more complex PDFs. I recently discovered Grover, which can remediate some of this inflexibility in creating PDFs.

  • Grover

    A Ruby gem to transform HTML into PDFs, PNGs or JPEGs using Google Puppeteer/Chromium

    You have a few options when trying to create a PDF in a Rails environment. Prawn and Wicked PDF have been around for quite a while. I have been using both gems and they work fine. However, they have a few limitations that can make it difficult to handle more complex PDFs. I recently discovered Grover, which can remediate some of this inflexibility in creating PDFs.

  • Tailwind CSS

    A utility-first CSS framework for rapid UI development.

    In fact you can save any existing view as PDF, allowing you to reuse your current HTML and/or CSS framework. You can use Tailwind for your CSS or ViewComponent to display your components and print them to PDF.

  • prawn-markup

    Parse simple HTML markup to include in Prawn PDFs

    There are gems to facilitate handling Prawn PDFs, e.g. prawn-markup which lets you add simple HTML snippets into Prawn-generated PDF.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts