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 "Rotate PDF Page" allows users to rotate specific pages within a PDF document. It supports various input methods for the PDF file, including binary data from a previous node, a base64 encoded string, or a URL pointing to the PDF file. Users can specify which pages to rotate and choose the rotation direction (clockwise, counter-clockwise, upside down, or no rotation). The output is a new PDF document with the specified pages rotated accordingly.
This node is beneficial in scenarios where PDFs need page orientation correction or adjustment without altering the entire document. For example, scanned documents that have some pages upside down or sideways can be fixed automatically. Another use case is preparing PDFs for presentations or printing where certain pages require rotation.
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 (usually "data") — used when Input Data Type is Binary Data |
| Base64 PDF Content | Base64 encoded PDF document content — used when Input Data Type is Base64 String |
| PDF URL | URL to the PDF file — used when Input Data Type is URL |
| Document Name | Name of the output PDF document (default: "output.pdf") |
| Rotation Type | Type of rotation to apply to the specified pages: - No Rotation: Keep pages as is - Clockwise: Rotate 90 degrees clockwise - Counter Clockwise: Rotate 90 degrees counter-clockwise - Upside Down: Rotate 180 degrees |
| Page Numbers | Pages to rotate, specified as a string (e.g., "1", "1,3,5", or "2-4") |
| Output Binary Field Name | Name of the binary property to store the output PDF file (default: "data") |
| Advanced Options | Custom JSON profiles for additional API options; refer to https://dev.pdf4me.com/apiv2/documentation/ for details |
Output
The node outputs a binary PDF file with the specified pages rotated according to the chosen rotation type. The output is stored in a binary property named by the user (default "data"). The JSON output contains metadata about the processed item, but the main result is the binary PDF file ready for further processing or saving.
Dependencies
- Requires access to the PDF4me API service to perform PDF manipulations.
- Needs an API key credential configured in n8n to authenticate requests to the PDF4me API.
- Internet access is required if using the URL input method to fetch the PDF file.
Troubleshooting
Common Issues:
- Incorrect page number format may cause errors or unexpected behavior. Ensure page numbers are valid and formatted correctly (e.g., "1", "1,3,5", "2-4").
- Providing an invalid or inaccessible URL will cause the node to fail fetching the PDF.
- If the binary data field name does not match the actual binary property from the previous node, the node will not find the PDF file.
- Insufficient API permissions or missing API key configuration will result in authentication errors.
Error Messages:
- "Failed to fetch PDF from URL": Check the URL validity and network connectivity.
- "Invalid page numbers": Verify the page numbers string format.
- "Authentication failed": Confirm the API key credential is set up correctly.
- "No PDF data found": Ensure the binary property name matches the input data.
Resolving these typically involves verifying input parameters, credentials, and network access.