Last updated
Last updated
Important Updates
đŖ Shopify REST DeprecationThe PDF file generator accepts an object containing an HTML string, and uses Pdfcrowd to render it as a PDF document. Pdfcrowd employs the Chromium Embedded Framework for HTML rendering, which uses the same foundation as Google Chrome. This allows Mechanic to generate PDFs with modern CSS and JavaScript features, including chart libraries and web fonts.
The PDF generator supports all rendering-related options of the Pdfcrowd API, using version 20.10.
For a complete list of options, see https://pdfcrowd.com/doc/api/html-to-pdf/http/.
If it's unclear why something isn't rendering properly, start by testing the HTML being used in a Pdfcrowd playground, at https://pdfcrowd.com/playground/html-to-pdf. If the issue is reproducible in the playground, use the "Help" button along the left-hand sidebar to get the ID of your specific playground, and instructions for contacting Pdfcrowd support with the details of your test.
Option
Description
html
Required; a string containing the HTML, CSS and JavaScript to be rendered
...
Additional Pdfcrowd API options supported; see below