Skip to main content
Url Html To Pdf Pn

Input

HTML Template to PDF

HTML Template to PDF conversion allows you to transform predefined HTML templates into PDF documents with injected data. Each HTML template has a unique ID, you simply need to enter this ID in your n8n module and provide the required data in JSON format. You can create your own templates or use the predefined ones available in the PDF.co HTML Templates Tool. You can use data in JSON or CSV format to inject into your HTML template. See the sample below:

JSON Sample

CSV Sample

Custom Profiles

You can set additional options for the operation used in the PDF.co node by using Custom Profiles. A custom profile is a string in JSON-like format containing predefined parameters. Here’s an example of a Custom Profiles input:
With this input, the PDF.co operation will return the output in base64 format. You can find the list of available parameters for customizing profiles in the PDF.co operation documentation below:
You can use any regular API parameter from the API Reference within n8n using the std_params feature in profiles. The std_params enables the definition of regular API parameters in a JSON format, See Standard Parameters for detailed documentation and examples.

Output