Wicked Pdf v1.0.0 Release Notes
Release Date: 2015-11-03 // over 8 years ago-
๐ฅ 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