We have a custom function in our CustomJS make.com module to generate PDF files from an HTML string or URL. We use a real headless Chromium browser in the background. This feature is ideal for automating the conversion of web pages or document templates into high-quality PDFs, streamlining Make.com workflows that require document generation. In this example, an HTML string is converted to a PDF and uploaded to Google Drive.
<h1>Hello World</h1>
You can directly access input field values using the 'input' JavaScript variable, or construct JSON objects for complex cases, detailed in our tutorial on the example page for JSON Parameter.