Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
PDF → Manage PDF Metadata
AI-generatedOverview
This node provides utilities to manage PDF metadata, allowing users to either retrieve existing metadata from a PDF or edit and update the metadata fields. It supports working with PDFs accessible via a public URL or provided as binary buffer data. Users can choose to get the updated PDF as a downloadable URL or as binary data.
Common scenarios include:
- Extracting metadata information such as title, author, subject, and keywords from a PDF for cataloging or indexing.
- Updating PDF metadata to reflect new document details before distribution or archival.
- Automating metadata management workflows in document processing pipelines.
Practical example:
- A user wants to update the author and add keywords to a PDF stored online. They provide the PDF URL, specify the new author and keywords, and receive the updated PDF as a downloadable link.
Properties
| Name | Meaning |
|---|---|
| Metadata Operation | Choose between "Edit Metadata" (to update PDF metadata) or "Get Metadata" (to retrieve metadata). |
| PDF URL | Public URL of the PDF file to process. |
| PDF Buffer | Binary buffer data of the PDF file to process instead of using a URL. |
| Return as URL | Boolean option to return the resulting PDF as a downloadable URL (true) or as binary data (false). |
| Title | Title of the PDF document (used only when editing metadata). |
| Author | Author of the PDF document (used only when editing metadata). |
| Subject | Subject of the PDF document (used only when editing metadata). |
| Keywords | List of keywords for the PDF document (used only when editing metadata). |
| File Name | Desired name for the output PDF file after editing metadata. |
Output
The node outputs JSON data containing the result of the metadata operation:
- For Get Metadata: The output JSON includes the extracted metadata fields such as title, author, subject, and keywords.
- For Edit Metadata: The output JSON contains the updated PDF either as a binary buffer or a downloadable URL depending on the "Return as URL" property.
- If returning as a URL, the output will include a link to download the modified PDF.
- If returning as binary, the output will contain the PDF file data suitable for further processing or saving.
Dependencies
- Requires an API key credential for authentication with the external 0CodeKit service.
- The node sends requests to the 0CodeKit API endpoint
https://prod.0codekit.com/pdf/metadata/{operation}, where{operation}is either "edit" or "info". - No additional local dependencies are required; all processing is handled by the external API.
Troubleshooting
- Common issues:
- Providing an invalid or inaccessible PDF URL may cause errors or empty metadata results.
- Supplying malformed or incomplete binary buffer data can lead to request failures.
- Omitting required fields when editing metadata (e.g., missing file name when expecting output) might cause unexpected behavior.
- Error messages:
- Authentication errors if the API key credential is missing or invalid.
- HTTP errors if the PDF URL is unreachable or the API service is down.
- Validation errors if input parameters do not meet expected formats.
- Resolutions:
- Verify the PDF URL is publicly accessible and correct.
- Ensure the binary buffer is properly encoded and complete.
- Confirm that the API key credential is configured correctly in n8n.
- Check that all required properties for the chosen operation are set.
Links and References
- 0CodeKit API Documentation (for detailed API usage and capabilities)
- PDF Metadata Wikipedia (background on PDF metadata concepts)