All Versions
23
Latest Version
Avg Release Cycle
45 days
Latest Release
1306 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v0.7.1 Changes
February 08, 2021๐ Fixed
- To determine the session pool / ghostscript pool size, if not specified in the options, we now fetch the number of schedulers at runtime, not compile time. Makes more sense. We also set a minimum of 1 in case there is only 1 scheduler online.
-
v0.7.0 Changes
January 25, 2021โ Added
- โ Added option
wait_forto wait for DOM element attribute to be set dynamically. (@jarimatti) - ๐ New global
timeoutoption for session pool allows to configure timeout of print processes. - New global
ignore_certificate_errorsoption allows to bypass SSL certificate verification. - ๐ New global
chrome_argsoption allows to pass custom flags to chrome command.
- โ Added option
-
v0.6.2 Changes
December 28, 2020๐ Fixed
- When sending HTML to Chrome with
{:html, <content>}, wait for thePage.loadEventFirednotification to allow external resources (images, scripts, ...) to be fetched. (#80)
- When sending HTML to Chrome with
-
v0.6.1 Changes
November 17, 2020๐ Fixed
- โช Reverted to file descriptor redirection to mitigate weird Port behaviour (#76).
-
v0.6.0 Changes
November 16, 2020๐ Changed
- โ Elixir version housekeeping. Fixed a warning on Elixir 1.11 by adding
:eexto:extra_applications. ChromicPDF now requires Elixir >= 1.10 for its use ofApplication.compile_env/3. - Dropped
poolboyin favour ofnimble_pool. This renders themax_overflowpoolboy option without effect. - 0๏ธโฃ Made "online mode" the default. Chrome will resolve all URL references unless the global
option
offline: falseis set.
โ Added
- โ Added telemetry events for the PDF generation & PDF/A conversion.
- "On Demand" mode allows to start & stop Chrome as needed, much like puppeteer does. This helps in development to prevent leaving behind zombie processes when the BEAM is aborted with Ctrl+C.
- ๐ New global option
discard_stderrallows to enable Chrome's stderr logging which is by default piped to/dev/null.
๐ Fixed
- Graceful shutdown is now actually graceful in that it waits for Chrome to clean up the debugging sessions and close the pipe on its end.
- โ Elixir version housekeeping. Fixed a warning on Elixir 1.11 by adding
-
v0.5.2 Changes
July 17, 2020๐ Fixed
- ๐ Moved static files required for PDF/A generation to /priv so they are embedded into releases.
- Moved logo files out of /priv so they are not included in releases.
-
v0.5.1 Changes
July 10, 2020๐ Fixed
- Fixed typespecs for
Template.source_and_options/1.[content_option]weren't allowed as call tostyles/1narrowed type to[style_option]. - โ Added missing keys to
style_option.
- Fixed typespecs for
-
v0.5.0 Changes
July 10, 2020๐ Changed
- โ Removed the
:widthand:heightoptions fromTemplate.styles/1andTemplate.source_and_options/1as it turns out that Chrome does not pay attention to@pagedimensions and instead still sets the size of the produced PDF to US letter. Since it does not seem possible to the PDF size in Chrome headless besides using thepaperWidthandpaperHeightoptions, moved to a:sizeoption instead that accepts names like:a4,:us_letter, and tuples of{<width>, <height>}in inches. These are then passed topaperWidthandpaperHeight. - Ditched the
preferCssPageSizeoption fromTemplate.source_and_options/1as it did not seem to have any effect. See above.
โ Added
- โ Added
zoom: 0.75to both#headerand#footerin the template as this seems to be exactly what is needed to reverse the viewport scaling that Chrome uses on them by default. With this, headers & footers and the content can use the same CSS styles. - ๐จ Included
-webkit-print-color-adjust: exactrule to template sobackground-colorrules are enabled by default.
๐ Fixed
- Make
print_to_pdfa/2actually acceptsource_and_options()map fromTemplate.
- โ Removed the
-
v0.4.0 Changes
July 09, 2020โ Added
- ๐ Allow
{:url, <path>}input tuples where path is only a path, and not afile://URL.
๐ Changed
- When passing a function to the
:outputparameter, the function result will now be returned as part of theprint_to_pdf& friends result as{:ok, <callback_result>}instead of:ok.
- ๐ Allow
-
v0.3.1 Changes
April 09, 2020โ Added
- ๐ Handle
{:safe, iolist()}tuples in Processor and Template (for content coming from Phoenix.View). ExposeTemplate.html_concatas potentially useful helper. - ๐ท Reset navigation history after each print job to avoid leaking information.
- ๐ป Create new empty browser context for each target (similar to incognito tab).
- ๐จ Restart browser target after a maximum number of PDFs have been printed to avoid memory bloat.
๐ Changed
- Set user agent to custom string.
- 0๏ธโฃ Default number of sessions in pool to half the number of available cores.
- ๐ Handle