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
- 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
- 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 Barcode
- Split PDF By Swiss QR
- 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. Common scenarios include generating reports from dashboards, saving receipts or invoices displayed on web pages, or creating offline snapshots of online content.
For example, you can input a product page URL and get a PDF catalog page, or convert an internal company dashboard (with basic authentication) into a PDF report automatically.
Properties
| Name | Meaning |
|---|---|
| Web URL | The URL of the web page to be converted into a PDF. |
| File Name | The desired output PDF file name including the extension (e.g., "my-webpage.pdf"). |
| Authentication Type | The type of authentication required to access the target website: "No Authentication" or "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 page: "Portrait" or "Landscape". |
| Page Format | Paper size format for the PDF, e.g., A4, A3, Legal, Tabloid, etc. |
| Binary Data Output Name | Custom name for the binary data field in the node's output where the generated PDF will be stored. |
| Advanced Options | Collection of optional settings to customize the PDF generation: |
| - Bottom Margin | Bottom margin of the PDF page (e.g., "20px", "1cm", "0.5in"). |
| - Custom Profiles | JSON string to specify custom API profiles for advanced PDF options. |
| - Display Header Footer | Boolean to show or hide header and footer in the PDF. |
| - Left Margin | Left margin of the PDF page. |
| - Print Background | Boolean to include background colors and images in the PDF. |
| - Right Margin | Right margin of the PDF page. |
| - Scale | Scale factor for rendering the web page (from 0.1 to 2). |
| - Top Margin | Top margin of the PDF page. |
Output
The node outputs the generated PDF as binary data under the specified binary data output name (default is "data"). This binary data represents the complete PDF file that can be saved, sent, or further processed in subsequent workflow steps.
The JSON output contains metadata about the operation and references to the binary data but primarily the PDF content is available as binary.
Dependencies
- Requires access to the internet or intranet to fetch the target web page.
- If the target page requires authentication, a username and password must be provided for Basic Authentication.
- Uses an external PDF conversion service or library (implied by the bundled source code referencing a PDF4me API wrapper).
- Requires proper API credentials configured in n8n to authenticate with the PDF conversion service.
Troubleshooting
- Invalid URL or unreachable web page: Ensure the URL is correct and accessible from the environment where n8n runs.
- Authentication failures: Verify username and password are correct if Basic Authentication is used.
- PDF generation errors: Check advanced options for invalid margin or scale values; use defaults if unsure.
- Empty or corrupted PDF output: Confirm the target page loads correctly and does not block automated requests.
- API quota or credential issues: Make sure the API key or credentials for the PDF conversion service are valid and have sufficient quota.
Links and References
- PDF4me API Profiles Documentation — for customizing advanced PDF generation options.
- General info on HTTP Basic Authentication: https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#basic_authentication
- Common paper sizes and formats: https://en.wikipedia.org/wiki/Paper_size