Actions6
- Generate PDF Actions
- Generate Image Actions
- Convert HTML to PDF Actions
Convert HTML to PDF → Convert HTML to PDF Syncronously
AI-generatedOverview
This node converts an HTML string into a PDF file synchronously using the PDF Noodle service. It is useful for scenarios where you need to generate PDF documents from HTML content on the fly, such as creating reports, invoices, or printable documents from web content or templates. The node supports customization of PDF print parameters and options like S3 storage, cover page inclusion, and debug mode.
Use Case Examples
- Generating a PDF invoice from an HTML template string.
- Converting a dynamically generated HTML report into a PDF for download or storage.
Properties
| Name | Meaning | |
|---|---|---|
| HTML String | The HTML string you want to convert to a PDF file. Send the whole tag. | Print Parameters |
| Options | Additional options including S3 bucket and key for storage, whether the PDF has a cover page, and debug mode to access extra debug information. | |
| Output JSONtemplateId - ID of the template used (if applicable).convertToImage - Flag indicating if the output is converted to an image (false for this operation).html - The HTML string sent for conversion.pdfParams - Parameters used for printing the PDF file.webhook - Webhook URL if asynchronous operation is used (not applicable here).s3_bucket - S3 bucket ID if specified for storage.s3_key - S3 key path if specified for storage.hasCover - Indicates if the PDF has a cover page.data - Variables data used for template rendering (not applicable here).debug - Flag indicating if debug mode is enabled. Dependencies An API key credential for PDF Noodle service Troubleshooting Ensure the HTML string is well-formed and includes the full tag to avoid conversion errors.Verify that the PDF print parameters are valid JSON and conform to the PDF Noodle documentation to prevent parameter errors.If using S3 storage options, confirm that the S3 connection ID and key path are correct and accessible.Enable debug mode to get detailed error information if the PDF generation fails. Links PDF Print Parameters Documentation - Documentation for available parameters to customize PDF printing. |