{"repo":"bitcrowd/chromic_pdf","free":true,"listed":false,"github":"https://github.com/bitcrowd/chromic_pdf","clone":"git clone https://github.com/bitcrowd/chromic_pdf.git","description":"Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript","language":"Elixir","stars":482,"topics":["pdf-generation","pdf-converter","pdf","invoice","chrome-devtools","chrome-headless"],"license":"Apache-2.0","category":"media-processing","readme_excerpt":"ChromicPDF is a HTML-to-PDF renderer for Elixir, based on headless Chrome. Features Node-free : In contrast to many other packages, it does not use puppeteer, and hence does not require Node.js. It communicates directly with Chrome's DevTools API over pipes, offering the same performance as puppeteer, if not better. Header/Footer : Using the DevTools API allows to apply the full set of options of the printToPDF function. Most notably, it supports header and footer HTML templates. PDF/A : It can convert printed files to PDF/A using Ghostscript. Converted files pass the verapdf validator. Requirements - Chromium or Chrome - Ghostscript (optional, for PDF/A support and concatenation of multiple sources) ChromicPDF is tested in the following configurations: Elixir Erlang/OTP Distribution Chromium Ghostscript ------ ---------- --------------- --------------- ----------- 1.15.7 26.2 Alpine 3.18 119.0.6045.159 10.02.0 1.14.5 25.3.1 Alpine 3.17 112.0.5615.165 10.01.1 1.14.0 25.1 Debian Buster 90.0.4430.212-1 9.27 Installation ChromicPDF is a supervision tree (rather than an application). You will need to inject it into the supervision tree of your application. First, add ChromicPDF to your runtime dependencies: Next, start ChromicPDF as part of your application: Usage Main API Here's how you generate a PDF from an external URL and store it in the local filesystem. The next example shows how to print a local HTML file to PDF/A, as well as the use of a callback function that receives t","default_branch":null,"files":null,"tree":[],"storefront":"/r/bitcrowd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bitcrowd/chromic_pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}