All Versions
23
Latest Version
Avg Release Cycle
45 days
Latest Release
525 days ago

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_for to wait for DOM element attribute to be set dynamically. (@jarimatti)
    • ๐Ÿ†• New global timeout option for session pool allows to configure timeout of print processes.
    • New global ignore_certificate_errors option allows to bypass SSL certificate verification.
    • ๐Ÿ†• New global chrome_args option allows to pass custom flags to chrome command.
  • v0.6.2 Changes

    December 28, 2020

    ๐Ÿ›  Fixed

    • When sending HTML to Chrome with {:html, <content>}, wait for the Page.loadEventFired notification to allow external resources (images, scripts, ...) to be fetched. (#80)
  • 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 :eex to :extra_applications. ChromicPDF now requires Elixir >= 1.10 for its use of Application.compile_env/3.
    • Dropped poolboy in favour of nimble_pool. This renders the max_overflow poolboy option without effect.
    • 0๏ธโƒฃ Made "online mode" the default. Chrome will resolve all URL references unless the global option offline: false is 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_stderr allows 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.
  • 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 to styles/1 narrowed type to [style_option].
    • โž• Added missing keys to style_option.
  • v0.5.0 Changes

    July 10, 2020

    ๐Ÿ”„ Changed

    • โœ‚ Removed the :width and :height options from Template.styles/1 and Template.source_and_options/1 as it turns out that Chrome does not pay attention to @page dimensions 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 the paperWidth and paperHeight options, moved to a :size option instead that accepts names like :a4, :us_letter, and tuples of {<width>, <height>} in inches. These are then passed to paperWidth and paperHeight.
    • Ditched the preferCssPageSize option from Template.source_and_options/1 as it did not seem to have any effect. See above.

    โž• Added

    • โž• Added zoom: 0.75 to both #header and #footer in 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: exact rule to template so background-color rules are enabled by default.

    ๐Ÿ›  Fixed

    • Make print_to_pdfa/2 actually accept source_and_options() map from Template.
  • v0.4.0 Changes

    July 09, 2020

    โž• Added

    • ๐Ÿ‘ Allow {:url, <path>} input tuples where path is only a path, and not a file:// URL.

    ๐Ÿ”„ Changed

    • When passing a function to the :output parameter, the function result will now be returned as part of the print_to_pdf & friends result as {:ok, <callback_result>} instead of :ok.
  • v0.3.1 Changes

    April 09, 2020

    โž• Added

    • ๐Ÿ– Handle {:safe, iolist()} tuples in Processor and Template (for content coming from Phoenix.View). Expose Template.html_concat as 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.