0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

PDF → PDF to Image

AI-generated

Overview

This node operation converts PDF files into images. It supports inputting the PDF either via a public URL or as binary data (buffer). Users can specify the filename of the PDF and optionally select specific pages to convert. This operation is useful for scenarios where visual representation of PDF content is needed, such as generating thumbnails, previews, or extracting images from PDF documents.

Use Case Examples

  1. Convert a PDF from a URL to an image for preview in a web application.
  2. Convert a PDF stored as binary data in a workflow to images for further processing or display.

Properties

Name Meaning
Code Variables Allows setting code variables defined in the code editor for the selected function, useful for dynamic input values.
Filename Filename of the PDF file to be processed.
URL or Binary Data Specifies whether the PDF input is provided as a URL or as binary data (buffer).
URL Public URL of the PDF file, required if input type is URL.
Binary Data Buffer of the PDF file, required if input type is binary data.
Pages Pages inside the PDF file to convert, optional and applicable when input is binary data.

Output

JSON

  • imageData - The resulting image data converted from the PDF.
  • fileName - The filename associated with the output image.

Dependencies

  • Requires an API key credential for the CodeKit API to perform the PDF to image conversion.

Troubleshooting

  • Ensure the input PDF URL is publicly accessible if using URL input type.
  • Verify that the binary data buffer is correctly formatted and represents a valid PDF file.
  • Check that the filename is provided if required by downstream processes.
  • Common errors may include invalid PDF format, inaccessible URL, or missing required parameters. Verify all inputs before execution.

Discussion