All Versions
29
Latest Version
Avg Release Cycle
128 days
Latest Release
-
Changelog History
Page 3
Changelog History
Page 3
-
v1.2.0 Changes
April 03, 2019๐ 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
-
v1.1.0 Changes
February 02, 2017๐ New Features
- ๐ Support Rails 5.x and Sprockets 3.x
- ๐ Support
window_status: 'somestring'
option, to instruct wkhtmltopdf to wait until the browserwindow.status
is equal to the supplied string. This can be useful to force rendering to wait as explained quite well here - Support
no_stop_slow_scripts: true
to let slow running scripts delay rendering - ๐ Changes to asset finding to support Rails 5
๐ Fixes
-
v1.0.6 Changes
April 05, 2016๐ Fixes
- ๐ Revert shell escaping of options. The fix was causing more issues than it solved (like "[page] of [topage]" being escaped, and thus not parsed by
wkhtmltopdf
). See #514 for details.
- ๐ Revert shell escaping of options. The fix was causing more issues than it solved (like "[page] of [topage]" being escaped, and thus not parsed by
-
v1.0.5 Changes
April 05, 2016๐ Fixes
- ๐ Numerous RuboCop style violation fixes, spelling errors, and test-setup issues from indyrb.org hack night. Thank you all for your contributions!
- Shellescape options. A stray quote in
header
orfooter
would cause PDF to fail to generate, and this should close down many potential attack vectors if you allow user-supplied values to be passed intowicked_pdf
render options.
-
v1.0.4 Changes
March 28, 2016๐ Fixes
- ๐
Check that logger responds to info before calling it. It was possible to have a
logger
method defined as a controller helper that would overrideRails.logger
. - ๐
Issue with Sprockets 3.0 where an asset referenced in a stylesheet not existing would raise an exception
read_asset
on nil.
- ๐
Check that logger responds to info before calling it. It was possible to have a
-
v1.0.3 Changes
March 28, 2016๐ Fixes
- โช Revert default DPI. Some installs of
wkhtmltopdf
would experience major slowdowns or crashes with it set to 72. It is suggested that a DPI of 75 may be better, but I'm holding off on making it a default without more information.
- โช Revert default DPI. Some installs of
-
v1.0.2 Changes
November 30, 2015๐ Fixes
- 0๏ธโฃ The default dpi is now 72. Previously the default would be whatever your
wkhtmltopdf
version specified as the default. This change speeds up generation of documents that containborder-radius
dramatically
- 0๏ธโฃ The default dpi is now 72. Previously the default would be whatever your
-
v1.0.1 Changes
November 19, 2015๐ Fixes
- ๐ Made minor RuboCop style tweaks.
- โ Added default RuboCop config and run after test suite.
- Issue with
nil.basename
from asset helpers.
-
v1.0.0 Changes
November 03, 2015๐ฅ Breaking Changes
- Accepted that
WickedPDF
cannot guarantee backwards compatibility with older versions ofwkthmltopdf
, and decided to publish a new version with the MAJOR number incremented, signaling that this may have breaking changes for some people, but providing a path forward for progress. This release number also signals that this is a mature (and relatively stable) project, and should be deemed ready for production (since it has been used in production since ~2009, and downloaded over a million times on RubyGems.org). - ๐ Stopped attempting to track with version number of
wkhtmltopdf
binary releases (wkhtmltopdf
v9.x ==WickedPDF
v9.x) - ๐ Adopted Semantic Versioning for release numbering
- โ Added a CHANGELOG (based on keepachangelog.com)
- Misc code tweaks as suggested by RuboCop
๐ New Features
- Check version of
wkhtmltopdf
before deciding to pass arguments with or without dashes - New arguments and options for the table of contents supported in newer versions of wkhtmltopdf:
text_size_shrink
,level_indentation
,disable_dotted_lines
,disable_toc_links
,xsl_style_sheet
- Merge in global options to
pdf_from_html_file
andpdf_from_string
- Add ability to generate pdf from a web resource:
pdf_from_url(url)
- โ Removed explicit dependency on Rails, since parts of this library may be used without it.
๐ Fixes
- 0๏ธโฃ Comment out the
:exe_path
option in the generated initializer by default (since many systems won't havewkthmltopdf
installed in that specific location) - ๐ Issues with
file://
paths on Windows-based systems - ๐ Issues with parsed options/argument ordering on versions of
wkthmltopdf
> 0.9 - ๐ Issues with middleware headers when running Rails app mounted in a subdirectory
- Issues with options that have a
key: 'value'
syntax when passed towkthmltopdf
- Issue with
:temp_path
option being deleted from original options hash - Issue with header/footer
:content
being deleted after the first page - Issues with options being modified during processing (including global config options)
- ๐ฑ Issues with asset helpers recognizing assets specified without a protocol
- Issues with
url()
references and embeddeddata:base64
assets in stylesheets rendered withwicked_pdf_stylesheet_link_tag
- Asset helpers no longer add a file extension if it already is specified with one
- Accepted that