rails_pdf | reliable way to generate PDF | Document Editor library
kandi X-RAY | rails_pdf Summary
kandi X-RAY | rails_pdf Summary
A reliable way to generate PDF of any complexity in Ruby on Rails apps
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rails_pdf
rails_pdf Key Features
rails_pdf Examples and Code Snippets
Community Discussions
Trending Discussions on rails_pdf
QUESTION
I am trying to deploy RailsPDF on a Heroku app but don't know where to start, as it requires Node.js / npm.
We need to generate PDF with Rails, and they must include JavaScript-generated diagrams. The latter pretty much ruled out Prawn, and wicked_pdf / wkhtmltopdf turned out to be extremely resource-heavy and instable at least in our environment (not to mention that the PDFs were often incomplete).
I've been toying around with a relatively new gem, RailsPDF. Like wkhtmltopdf it renders views directly to PDF files, but with a current Chrome version through Puppeteer / RelaxedJS. So it's flexible but also more stable.
Locally I can run it fine. What I haven't figured out though is how to deploy this on a Heroku Rails app, as Node / npm are required to install RelaxedJS.
How can I use a Node.js / npm dependency in my Ruby app on Heroku?
...ANSWER
Answered 2019-Sep-03 at 11:01Use multiple buildpacks:
Set your main buildpack
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rails_pdf
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page