Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
PDF → PDF Pages
AI-generatedOverview
This node operation allows manipulation of PDF pages with various actions such as adding, rotating, removing, and resizing pages within a PDF document. It is useful in scenarios where users need to programmatically modify PDF files, for example, adding blank pages, rotating specific pages for better readability, removing unwanted pages, or resizing pages to fit specific dimensions.
Use Case Examples
- Adding pages to a PDF at specified indices with custom width and height.
- Rotating selected pages by a specified degree.
- Removing specific pages or page ranges from a PDF.
- Resizing pages to new width and height dimensions.
Properties
| Name | Meaning |
|---|---|
| Code Variables | Defines code variables used in the operation, allowing dynamic input values for the PDF manipulation. |
| PDF Pages | Specifies the page operation to perform: add, rotate, remove, or resize. |
| URL | Public URL of the PDF file to manipulate. |
| Buffer | Buffer content of the PDF file to manipulate. |
| Get File as URL | Boolean flag indicating whether the resulting PDF should be returned as a URL. |
| Filename | Filename of the PDF file. |
| Pages | Pages to manipulate. For 'add' operation, these are page indices where new pages are added. For other operations, this can be a string specifying page ranges or indices. |
| Width of Page | Width of the page in points, used for 'add' and 'resize' operations. |
| Height of Page | Height of the page in points, used for 'add' and 'resize' operations. |
| Rotation of Page | Rotation angle of the page, used for 'rotate' operation. |
Output
JSON
result- The manipulated PDF data or URL depending on the 'Get File as URL' setting.
Dependencies
- An API key credential for the CodeKit API service
Troubleshooting
- Ensure the PDF URL or buffer is correctly provided and accessible.
- Verify that the page indices or ranges specified are valid and within the PDF page count.
- Check that the width, height, and rotation values are within acceptable ranges.
- If the operation fails, confirm that the API key credential is valid and has necessary permissions.
Links
- n8n CodeKit Node Documentation - Official documentation for the CodeKit node in n8n, which includes PDF operations.