Deep-dive on the Next Gen Platform. Join the Webinar!

Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Visit the Heroku Blog

    Find news and updates from Heroku in the blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Node.js Behavior in Heroku
      • Working with Node.js
      • Troubleshooting Node.js Apps
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Heroku Inference
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Add-ons
  • All Add-ons
  • BreezyPDF

This article was contributed by a member of the Heroku community

Its contents might not always reflect updates to the Heroku platform.

BreezyPDF

This add-on is operated by BreezyPDF

Generate beautiful PDF documents from the HTML you already have

BreezyPDF

Last updated October 01, 2018

The BreezyPDF add-on is currently in beta.

Table of Contents

  • Provisioning the add-on
  • Local setup
  • Using with Ruby on Rails or other Rack-based web frameworks (Sinatra, Hamani, etc.)
  • Using with other languages
  • Monitoring and logging
  • Dashboard
  • Migrating between plans
  • Removing the add-on
  • Support

BreezyPDF is an add-on for generating beautiful PDF documents.

Create complex and beautiful PDFs using the technologies you already know and love with minimal configuration. BreezyPDF provides full support for modern HTML, JavaScript, and CSS technologies, including charts, SVG, images, and canvas elements. There are no libraries to configure, UX to figure out, or fonts to install.

Provisioning the add-on

BreezyPDF can be attached to a Heroku application via the CLI:

A list of all plans available can be found here.

$ heroku addons:create breezypdf
-----> Adding breezypdf to sharp-mountain-4005... done, v18 (free)

After you provision BreezyPDF, the BREEZYPDF_SECRET_API_KEY config var is available in your app’s configuration. It contains the secret API key for access to the BreezyPDF API. You can confirm this via the heroku config:get command:

$ heroku config:get BREEZYPDF_SECRET_API_KEY
sk_e4dc1a4d397e7af5b82a38749f3fd1d1

After you install BreezyPDF, your application should be configured to fully integrate with the add-on.

Local setup

BreezyPDF has complete support for localhost and other development environments. For the best user experience, make sure to properly configure BreezyPDF for your specific environment’s needs.

Environment setup

After you provision the add-on, it’s necessary to locally replicate its config vars so your development environment can operate against the service.

Use the Heroku Local command-line tool to configure, run, and manage process types specified in your app’s Procfile. Heroku Local reads configuration variables from a .env file. To view all of your app’s config vars, type heroku config. Use the following command for each value that you want to add to your .env file:

$ heroku config:get BREEZYPDF_SECRET_API_KEY -s  >> .env

Credentials and other sensitive configuration values should not be committed to source-control. In Git exclude the .env file with: echo .env >> .gitignore.

For more information, see the Heroku Local article.

Service setup

BreezyPDF can be installed for use in a local development environment. Typically this entails creating another version of the service and pointing the BREEZYPDF_SECRET_API_KEY to this remote service.

Using with Ruby on Rails or other Rack-based web frameworks (Sinatra, Hamani, etc.)

Ruby applications need to add the following entry into their Gemfile specifying the BreezyPDF client library:

gem 'breezy_pdf'

Update application dependencies with bundler:

$ bundle install

Configure the BreezyPDF client:

# config/initializers/breezypdf.rb

BreezyPDF.setup do |config|
  config.secret_api_key = ENV["BREEZYPDF_SECRET_API_KEY"]
  config.upload_assets = Rails.env.development?
end

BreezyPDF is highly configurable depending on your environment’s needs. See the library configuration options here.

Configure Rails to use the BreezyPDF middleware:

# config/application.rb

config.middleware.use BreezyPDF::Middleware

Add a link to the web page you’d like to be converted to a PDF:

# view.html.erb
<%= link_to "Download as PDF", my_resource_path(format: :pdf) %>

Additional setup and configuration details can be found here.

Using with other languages

Support for additional languages is coming soon.

Monitoring and logging

You can monitor BreezyPDF activity within the Heroku log-stream by filtering for messages containing BreezyPDF:

$ heroku logs -t | grep 'BreezyPDF'

Dashboard

For more information on the features available within the BreezyPDF dashboard, please see the docs at mysite.com/docs.

The BreezyPDF dashboard allows you to view your rendering usage and configure global options.

You can access the dashboard via the CLI:

$ heroku addons:open breezypdf
Opening breezypdf for sharp-mountain-4005

or by visiting the Heroku Dashboard and selecting the application in question. Select BreezyPDF from the Add-ons menu.

Migrating between plans

Application owners should carefully manage the migration timing to ensure proper application function during the migration process.

Migrating between plans will instantly reflect the rendering credits available in the given month.

Use the heroku addons:upgrade command to migrate to a new plan.

$ heroku addons:upgrade breezypdf:standard-1
-----> Upgrading breezypdf:standard-1 to sharp-mountain-4005... done, v18 ($49/mo)
       Your plan has been updated to:breezypdf:standard-1

Removing the add-on

You can remove breezypdf via the CLI:

This will disable PDF rendering and remove any retained PDFs immediately.

$ heroku addons:destroy breezypdf
-----> Removing breezypdf-SLUG from sharp-mountain-4005... done, v20 (free)

Before removing BreezyPDF, ensure that any previously rendered PDFs have been downloaded, and that URLs you’ve shared with your users referencing those PDFs have been updated.

Support

All BreezyPDF support and runtime issues should be submitted via one of the Heroku Support channels. Any non-support related issues or product feedback is welcome at support@breezypdf.com.

Keep reading

  • All Add-ons

Feedback

Log in to submit feedback.

Zara 4 Bucketeer

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices