0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

PDF → PDF Pages

AI-generated

Overview

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

  1. Adding pages to a PDF at specified indices with custom width and height.
  2. Rotating selected pages by a specified degree.
  3. Removing specific pages or page ranges from a PDF.
  4. 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

Discussion