Actions80
- Extract Text From Word
- Find And Replace Text
- Convert PDF To Editable PDF Using OCR
- Create Swiss QR Bill
- Split PDF By Barcode
- Split PDF By Swiss QR
- Split PDF By Text
- Split PDF Regular
- Create PDF/A
- Convert HTML To PDF
- Convert Markdown To PDF
- Upload File To PDF4me
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Fill PDF Form
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- AI-Invoice Parser
- AI-Process HealthCard
- AI-Process Contract
- Generate Barcode
- Classify Document
- Parse Document
- Linearize PDF
- Flatten PDF
- Convert To PDF
- Json To Excel
- Convert PDF To Excel
- Convert PDF To Word
- Convert PDF To PowerPoint
- Convert VISIO
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Extract Pages
- Merge Multiple PDFs
- Overlay PDFs
- Rotate Document
- Rotate Page
- Sign PDF
- URL to PDF
- Add Image Watermark To Image
- Add Text Watermark To Image
- Compress Image
- Convert Image Format
- Create Images From PDF
- Flip Image
- Get Image Metadata
- Image Extract Text
- Remove EXIF Tags From Image
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Image
- Rotate Image By EXIF Data
- Compress PDF
- Get PDF Metadata
- Repair PDF Document
- Get Document From Pdf4me
- Update Hyperlinks Annotation
- Protect Document
- Unlock PDF
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Generate Document Single
- Generate Documents Multiple
- Get Tracking Changes In Word
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Attachment From PDF
- Extract Text By Expression
- Extract Table From PDF
- Extract Resources
Overview
This node provides functionality to rotate PDF documents. It supports rotating an entire PDF file by 0°, 90° clockwise, 90° counter-clockwise, or 180° (upside down). The node is useful in scenarios where PDFs are scanned or generated with incorrect orientation and need correction before further processing or distribution.
Practical examples include:
- Rotating scanned documents that were scanned sideways.
- Adjusting the orientation of PDFs received from external sources.
- Preparing PDFs for printing or presentation with the correct page rotation.
The node accepts input PDF files in multiple formats: binary data from a previous node, base64 encoded string, or a URL pointing to the PDF file.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file to rotate. Options: • 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" for file uploads). Required if Input Data Type is Binary Data. |
| Base64 PDF Content | Base64 encoded PDF document content. Required if Input Data Type is Base64 String. |
| PDF URL | URL to the PDF file to rotate. Required if 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 — Keep the document as is • Clockwise — Rotate 90 degrees clockwise • Counter Clockwise — Rotate 90 degrees counter-clockwise • Upside Down — Rotate 180 degrees (upside down) |
| Advanced Options | Collection of advanced settings. Currently supports: • Custom Profiles — JSON string to adjust custom properties for API calls, allowing extra options specific to certain APIs. See https://dev.pdf4me.com/apiv2/documentation/ for details. |
Output
The node outputs the rotated PDF document in binary form attached to the output item. The output includes:
- A JSON object representing metadata or status (depending on the underlying API response).
- The rotated PDF file as binary data, typically accessible via a binary property (commonly named "data").
If the input was a PDF file, the output will be the same PDF rotated according to the selected rotation type.
Dependencies
- Requires access to the PDF4me API service to perform the rotation operation.
- Needs an API key credential configured in n8n to authenticate requests to the PDF4me API.
- Internet connectivity is required if using URL input or calling the external API.
Troubleshooting
Common issues:
- Providing an invalid or inaccessible URL when using URL input type may cause failures.
- Incorrect base64 encoding or corrupted binary data can lead to errors during processing.
- Missing or misnamed binary property when using binary input type will result in no file found.
- Invalid JSON in Custom Profiles advanced option may cause API call errors.
Error messages and resolutions:
- "File not found" — Check that the binary property name matches the actual input binary field.
- "Invalid PDF format" — Verify that the input PDF is not corrupted and is properly encoded.
- "Authentication failed" — Ensure the API key credential is correctly set up and valid.
- "Failed to fetch URL" — Confirm the URL is reachable and publicly accessible.