0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

PDF → Metadata

AI-generated

Overview

This node operation allows users to either retrieve or edit metadata of PDF files. It supports inputting the PDF via a public URL or a buffer. When editing metadata, users can specify new values for the PDF's title, author, subject, keywords, and filename. Additionally, users can choose whether to get the resulting PDF as a URL. This operation is useful for workflows that require managing PDF metadata, such as updating document properties before distribution or extracting metadata information for cataloging.

Use Case Examples

  1. A user wants to update the title and author metadata of a PDF before sending it out.
  2. A user needs to extract metadata information from a PDF file hosted at a public URL for indexing purposes.

Properties

Name Meaning
Code Variables Allows defining variables used in code for the selected function, useful for dynamic metadata editing.
Metadata Choose whether to edit metadata or get PDF metadata information.
URL Public URL of the PDF file to process.
Buffer Buffer of the PDF file to process.
Get File as URL Whether to return the resulting PDF as a URL when editing metadata.
Filename Filename of the PDF when editing metadata.
Title New title to set in the PDF metadata.
Author New author to set in the PDF metadata.
Subject New subject to set in the PDF metadata.
Keywords New keywords to set in the PDF metadata.

Output

JSON

  • metadata
    • title - Title metadata of the PDF.
    • author - Author metadata of the PDF.
    • subject - Subject metadata of the PDF.
    • keywords - Keywords metadata of the PDF.
  • fileName - Filename of the PDF file.
  • url - URL of the PDF if requested as URL output.

Dependencies

  • An API key credential for the CodeKit API

Troubleshooting

  • Ensure the PDF URL or buffer is correctly provided and accessible.
  • When editing metadata, verify that required fields like filename and metadata fields are correctly set.
  • If the node throws errors related to API requests, check the API key credential and network connectivity.

Discussion