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
The node provides functionality to rotate PDF documents. It supports multiple 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 the type of rotation to apply to the entire document, such as no rotation, 90 degrees clockwise, 90 degrees counter-clockwise, or 180 degrees (upside down). This node is useful in scenarios where PDFs need orientation correction or adjustment before further processing or distribution.
Practical examples:
- Rotating scanned PDF documents that were saved in the wrong orientation.
- Adjusting PDF reports generated by external systems to match presentation requirements.
- Automating batch rotation of PDFs received via URLs or encoded content.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file to rotate. Options: Binary Data (from previous node), Base64 String (encoded PDF content), URL (link to PDF file). |
| Input Binary Field | Name of the binary property containing the PDF file when using Binary Data input type. Usually "data" for file uploads. |
| Base64 PDF Content | Base64 encoded string representing the PDF document content, used when Input Data Type is Base64 String. |
| PDF URL | URL to the PDF file to rotate, used when Input Data Type is URL. |
| Document Name | Name of the output PDF document after rotation. Defaults to "output.pdf". |
| Rotation Type | Type of rotation to apply to the entire document. Options: No Rotation, Clockwise (90°), Counter Clockwise (90°), Upside Down (180°). |
| Output Binary Field Name | Name of the binary property where the rotated PDF file will be stored in the output. Defaults to "data". |
| Advanced Options | Collection of optional advanced settings, including "Custom Profiles" which allow JSON configuration for extra API options specific to certain APIs. |
Output
The node outputs the rotated PDF document as binary data under the specified output binary field name (default "data"). The output contains the PDF file with the applied rotation. The output JSON structure typically includes metadata about the file and the binary data itself, enabling downstream nodes to use or save the rotated PDF.
If the input was binary, the output binary property will contain the rotated PDF file. If the input was base64 or URL, the output similarly contains the rotated PDF in binary form.
Dependencies
- Requires access to an external PDF processing API service capable of rotating PDF documents.
- Needs proper API authentication configured in n8n credentials (e.g., an API key or token).
- Network access to fetch PDF files if using URL input type.
- The node relies on bundled action modules internally to perform the rotation operation.
Troubleshooting
Common issues:
- Incorrect input data type or missing binary property name may cause failures in reading the PDF file.
- Invalid or inaccessible URL when using URL input type results in download errors.
- Unsupported or corrupted PDF files may cause the rotation API to fail.
- Missing or invalid API credentials will prevent successful API calls.
Error messages and resolutions:
- "Input binary property not found": Verify the binary property name matches the actual input data.
- "Failed to fetch PDF from URL": Check the URL accessibility and correctness.
- "API authentication failed": Ensure the API key/token is correctly set up in n8n credentials.
- "Invalid PDF format": Confirm the input PDF is valid and not corrupted.
Links and References
- PDF4me API Documentation
- General information on PDF rotation and manipulation techniques.