Actions80
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Image Watermark To Image
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- Add Text Watermark To Image
- AI-Invoice Parser
- AI-Process Contract
- AI-Process HealthCard
- Classify Document
- Compress Image
- Compress PDF
- Convert HTML To PDF
- Convert Image Format
- Convert JSON To Excel
- Convert Markdown To PDF
- Convert PDF To Editable PDF Using OCR
- Convert PDF To Excel
- Convert PDF To PowerPoint
- Convert PDF To Word
- Convert To PDF
- Convert URL to PDF
- Convert VISIO
- Convert Word to PDF Form
- Create Images From PDF
- Create PDF/A
- Create Swiss QR Bill
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Split PDF By Barcode
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Extract Attachment From PDF
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Resources
- Extract Table From PDF
- Extract Text By Expression
- Extract Text From Word
- Fill PDF Form
- Find And Replace Text
- Flip Image
- Flatten PDF
- Generate Barcode
- Generate Document Single
- Generate Documents Multiple
- Get Document From Pdf4me
- Get Image Metadata
- Get PDF Metadata
- Split PDF By Swiss QR
- Get Tracking Changes In Word
- Image Extract Text
- Linearize PDF
- Merge Multiple PDFs
- Overlay PDFs
- Parse Document
- Protect PDF
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Remove EXIF Tags From Image
- Repair PDF Document
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Document
- Rotate Image
- Rotate Image By EXIF Data
- Rotate PDF Page
- Sign PDF
- Split PDF By Text
- Split PDF Regular
- Unlock PDF
- Update Hyperlinks Annotation
- Upload File To PDF4me
Overview
This node converts a web page URL into a PDF document. It is useful when you want to capture the content of any publicly accessible or authenticated webpage as a PDF file for archiving, sharing, or further processing. For example, you can convert an online article, a report dashboard, or a dynamically generated webpage into a PDF format automatically within your workflow.
The node supports authentication for websites requiring basic login credentials and allows customization of the PDF output such as page layout, format, margins, scaling, and whether to include background graphics or headers/footers.
Properties
| Name | Meaning |
|---|---|
| Web URL | The URL of the web page that you want to convert into a PDF document. |
| File Name | The desired name of the output PDF file including the .pdf extension. |
| Authentication Type | The type of authentication required to access the target website. Options: "No Authentication", "Basic Authentication". |
| Username | Username for basic authentication if required by the target website. |
| Password | Password for basic authentication if required by the target website. |
| Page Layout | Orientation of the PDF pages. Options: "Portrait" or "Landscape". |
| Page Format | The paper size format for the PDF. Options include standard sizes like A0 through A8, Executive, Legal, Statement, Tabloid. |
| Binary Data Output Name | Custom name for the binary data field in the node's output where the PDF file content will be stored. |
| Advanced Options | Collection of additional optional settings: - Bottom Margin (e.g., 20px, 1cm) - Left Margin - Right Margin - Top Margin - Display Header Footer (boolean) - Print Background (boolean) - Scale (number between 0.1 and 2) - Custom Profiles (JSON string for advanced API options) |
Output
The node outputs the converted PDF as binary data under the specified binary data output name (default is data). This binary data represents the actual PDF file content which can be saved, sent, or processed further in the workflow.
The JSON output contains metadata about the operation and references the binary data. The binary data can be used directly in subsequent nodes that accept file inputs.
Dependencies
- Requires internet access to fetch the web page from the provided URL.
- If authentication is needed, valid username and password must be supplied.
- Uses an external PDF conversion service API (implied by the bundled source code referencing pdf4me actions).
- Requires configuration of an API key credential or similar authentication token for the external PDF conversion service (not shown explicitly but implied).
Troubleshooting
- Invalid URL or unreachable website: Ensure the URL is correct and accessible from the n8n environment.
- Authentication failures: Verify username and password are correct if Basic Authentication is selected.
- PDF generation errors: Check advanced options for invalid margin or scale values; use defaults if unsure.
- Empty or corrupted PDF output: Confirm the target webpage is fully loaded and does not block automated requests.
- API quota or permission issues: Make sure the API key or authentication token for the PDF conversion service is valid and has sufficient permissions.
Links and References
- PDF4me API Profiles Documentation — for customizing advanced PDF conversion options via profiles JSON.
- Standard paper sizes reference: https://en.wikipedia.org/wiki/Paper_size