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 operation "Create Images From PDF" converts pages of a PDF document into image files. It supports various input methods for the PDF, including binary data from a previous node, a base64 encoded string, or a URL to the PDF file. Users can specify which pages to convert (all, specific pages, or a range) and configure output image settings such as format and width.
This node is beneficial in scenarios where you need to extract visual representations of PDF pages for previews, thumbnails, or further image processing workflows. For example, converting an invoice PDF into JPEG images for display on a website or extracting certain pages as PNG images for archival purposes.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Method to provide the PDF file: - Binary Data: Use PDF file from previous node - Base64 String: Provide PDF content as base64 encoded string - URL: Provide URL to PDF file |
| Input Binary Field | Name of the binary property containing the PDF file (used when Input Data Type is Binary Data). Usually "data" for file uploads. |
| Base64 PDF Content | Base64 encoded string of the PDF document content (used when Input Data Type is Base64 String). |
| PDF URL | URL pointing to the PDF file to convert (used when Input Data Type is URL). |
| Document Name | Reference name for the source PDF file, e.g., "original-file.pdf". |
| Image Settings | Settings for output images: - Image Width (pixels): Width of output images, between 100 and 4000 pixels. - Image Format: Output image format options include JPG, JPEG, BMP, GIF, JB2, JP2, JPF, JPX, PNG, TIF, TIFF. |
| Page Selection | Which pages to convert: - All Pages - Specific Pages - Page Range |
| Page Numbers | Comma-separated list or range of page numbers to convert, e.g., "1,3,5" or "1-5" (shown if Page Selection is Specific Pages or Page Range). |
| Output File Name Prefix | Prefix for naming output image files, e.g., "page" will produce files like page_1.jpg, page_2.jpg, etc. |
| Output Binary Field Name | Name of the binary property to store the output image files. |
Output
The node outputs an array of items, each representing one converted image from the PDF pages. Each item contains:
- A
jsonobject with metadata about the image (such as page number). - A binary property (name configurable by "Output Binary Field Name") containing the image file data in the selected format.
If multiple pages are converted, multiple output items are produced, one per image.
Dependencies
- Requires access to the PDF file either via binary input, base64 string, or URL.
- No explicit external API keys or credentials are indicated in the code snippet; however, the node likely depends on an underlying PDF processing library or service integrated within the n8n environment.
- Proper configuration of the workflow to supply the PDF input correctly is necessary.
Troubleshooting
Common issues:
- Incorrect input data type or missing PDF content will cause failures.
- Invalid page numbers or ranges may result in errors or no output.
- Unsupported image formats or invalid width values outside allowed range could cause errors.
- Network issues when providing a PDF URL might prevent fetching the file.
Error messages:
- Errors related to missing binary data or invalid base64 strings indicate incorrect input setup.
- Page selection errors usually stem from malformed page number strings.
- If the node throws errors about unsupported formats or sizes, verify the image settings inputs.
Resolutions:
- Ensure the PDF input matches the selected input data type.
- Validate page numbers and ranges carefully.
- Use supported image formats and widths within specified limits.
- Confirm network accessibility if using a URL input.
Links and References
- PDF to Image Conversion Concepts
- Common Image Formats Explained
- Base64 Encoding
- n8n Documentation (for general node usage and binary data handling)