Skip to main content
Zapier Step

Input

NameDescriptionRequired
HTML or URL InputEnter the HTML content or URL which you want to convert.Yes (unless HTML Template ID is used)
HTML Template IDSelect a Template ID from your HTML to PDF TemplatesYes (unless HTML or URL Input is used)
Page OrientationChoose the PDF page orientation.No
Page SizeSelect the paper size for the PDF.No
Custom Page SizeUse this instead of Page Size to specify a custom paper size for the PDF in width height format. You can use px, mm, cm or in units. For example: 200px 300px, 200mm 300mm, 20cm 30cm, or 6in 8in.No
Custom MarginsOverride the default margins. Specify the margins in the top right bottom left order. You can use px, mm, cm or in units. You can set margins for all sides at once using a single value, for example: 10px.No
Render Page BackgroundWhether to render the page background from the HTML source or not.No
Media TypeSelect Print or Screen quality for the PDF outputNo
Do not wait until full page loadSet to true to not wait for full page load. Helps speed up pages with dynamic content.No
HTML Template DataInput data for HTML templates. Accepts JSON or CSV format. For example, for JSON: '{ "total": "500" }', or for CSV: 'column1,column2,column3 value1,value2,value3'. If your template ID has variables this is how you can input data your into the PDF.No
NameThe output file name. If left blank then htmltopdf.pdf will be used.No
Custom ProfilesA JSON string which adds options for the conversion process. See Custom Profiles for more.No

Output

NameDescription
urlThe temporary URL on the PDF.co file server.
outputLinkValidTillA timestamp which indicates how long the url will be available for.
errorDetails of any errors (if any).
statusThe response status code. If all good this will be 200.
nameThe name of the file.
jobIdThe unique identifier for the job.
creditsThe credits spent on the process.
remainingCreditsThe credits left on your account.
durationThe time it took for the process.

Custom profiles

Use Custom Profiles to enhance your workflow with additional processing options. Enter JSON configuration to customize OCR settings, output format, text extraction methods, and more.
Custom Profiles

Sample JSON

{ "ImageOptimizationFormat": "JPEG", "JPEGQuality": 25, "ResampleImages": true, "ResamplingResolution": 120, "GrayscaleImages": true }
You can use any regular API parameter from the API Reference within Zapier 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.
ParameterTypeDefaultDescription
outputDataFormatstring-If you require your output as base64 format, set this to base64
HTMLCodeHeadInjectstring-Injects CSS into the HTML <head> section to prevent page breaks within specified elements. See HTML to PDF Knowledge Base for more information.
DataEncryptionAlgorithmstring-Controls the encryption algorithm used for data encryption. See User-Controlled Encryption for more information. The available algorithms are: AES128, AES192, AES256.
DataEncryptionKeystring-Controls the encryption key used for data encryption. See User-Controlled Encryption for more information.
DataEncryptionIVstring-Controls the encryption IV used for data encryption. See User-Controlled Encryption for more information.
DataDecryptionAlgorithmstring-Controls the decryption algorithm used for data decryption. See User-Controlled Encryption for more information. The available algorithms are: AES128, AES192, AES256.
DataDecryptionKeystring-Controls the decryption key used for data decryption. See User-Controlled Encryption for more information.
DataDecryptionIVstring-Controls the decryption IV used for data decryption. See User-Controlled Encryption for more information.