Wicked Pdf v1.2.0 Release Notes
Release Date: 2019-04-03 // almost 5 years ago-
๐ New Features
- Add
raise_on_all_errors: true
option to raise on any error that prints to STDOUT during PDF generation - Add ability to use the
assigns
option torender
to assign instance variables to a PDF template - Add ability to track console progress with
progress: -> (output) { puts output }
. This is useful to add reporting hooks to show your frontend what page number is being generated.
๐ Fixes
- Fix conflict with other gems that hook into
render
and avoid usingalias_method_chain
where possible - Fix issue using the shell to locate
wkhtmltopdf
in a Bundler environment - Fix
wkhtmltopdf
path detection when HOME environment variable is unset - ๐
Fix error when the
Rails
constant is defined but not actually using Rails - Fix compatibility issue with Sprockets 4
- ๐
Fix compatibility issue with
Mime::JS
in Rails 5.1+ - Fix deprecation warning by using
after_action
instead ofafter_filter
when available - Provide Rails
base_path
tofind_asset
calls for Sprockets file lookup - Logger changes:
- ๐ Documentation changes:
- Update link to wkhtmltopdf homepage
- Update link to
wkhtmltopdf_binary_gem
- Update documentation for usage with the Asset Pipeline
- Document
default_protocol
option - Document
image
andno_image
options - Document issue with DPI/scaling on various platforms
- Document creating and attaching a PDF in a mailer
- Document dependency on
wkhtmltopdf
with RubyGems - Add example using WickedPDF with Rails in an API-only configuration
- Add example for rending a template as a header/footer
- Add GitHub issue template
- Add CodeClimate Badge
- RuboCop cleanup
- โก๏ธ Updates to Travis CI pipeline to support newer versions of Ruby & Rails
- Add