Skip to main content

Get PDF Metadata using n8n action

PDF4me Get PDF Metadata extracts comprehensive document information and technical properties from PDF files through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to retrieve detailed metadata including document properties, page count, file size, creation date, author information, and technical specifications. This enterprise-grade solution is ideal for document management systems, compliance workflows, content analysis, audit trails, and automated document inspection that require accurate property analysis and reliable metadata extraction with seamless n8n integration.

Setup

Add the PDF4me "Get PDF Metadata" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "Get PDF Metadata" action
  3. Configure input parameters (see below)
Get PDF Metadata

Parameters

Complete list of parameters for the Get PDF Metadata action. Configure these parameters to control PDF metadata extraction.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterTypeDescriptionExample
Input Data Type***StringPDF Input Format Selection
• Choose the format of your PDF data input
• PDF4me supports multiple input types
• Options: Binary Data, Base64 String, or URL
Binary Data
Input Binary FieldBinaryBinary PDF File Input (Required if Binary Data)
• Reference PDF file from previous n8n node or file upload
• PDF4me processes binary PDF files with automatic format detection
• Required when Input Data Type is "Binary Data"
{{ $binary.data }}
Base64 Document ContentStringBase64 Encoded PDF Input (Required if Base64 String)
• Provide PDF data as base64 encoded string
• PDF4me automatically decodes and processes the PDF content
• Required when Input Data Type is "Base64 String"
UEsDBBQABgAI...
File URLStringPublic PDF URL Input (Required if URL)
• Provide a public/open permission URL to the PDF file
• PDF4me downloads and processes the file from the provided URL
• Required when Input Data Type is "URL"
https://abc.com/sample.pdf
Output File Name***StringMetadata Output Filename
• Specify the name for the generated metadata file
• Must include .json extension
• PDF4me ensures unique naming and format validation
pdf_metadata.json
Binary Data Output Name***StringBinary Data Mapping
• Define the variable name for accessing generated metadata binary data
• Used in subsequent workflow actions
• Essential for workflow data flow
data
AsyncBooleanAsynchronous Processing
• Enable asynchronous processing for large files
• When enabled, operation runs in background and returns immediately
• Recommended for large PDF files
true

Advanced Options

The following parameters are available in the Advanced Options section and are optional:

ParameterTypeDescriptionExample
Custom ProfilesStringNoPDF4me custom configuration profiles - Set additional options for the PDF4me Get PDF Metadata operation using custom profiles. A custom profile is a string in JSON-like format containing predefined parameters for advanced metadata extraction settings. Supports options like outputDataFormat, preserveMetadata, optimizeForPrinting, compressionLevel, detectionSensitivity, preserveAnnotations, and colorSpaceOptimization

Output

Output Parameters

ParameterTypeDescriptionExample
successBooleanPDF4me metadata extraction status indicator - Boolean flag indicating the success or failure of the metadata extraction process. PDF4me returns true for successful operations and false for any errors, enabling robust error handling in automated workflowstrue
messageStringPDF4me metadata extraction status message - Human-readable status message providing details about the metadata extraction process result. Includes success confirmation or error details for troubleshootingPDF metadata extracted successfully
fileNameStringPDF4me generated metadata filename - The complete filename of the successfully generated metadata file with proper .json extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processespdf_metadata.json
mimeTypeStringPDF4me output MIME type - MIME type of the generated metadata file, always "application/json" for JSON metadata files. Useful for content type validation and proper file handling in web applicationsapplication/json
fileSizeNumberPDF4me metadata file size in bytes - The exact size of the generated metadata file in bytes, provided by PDF4me for storage planning, bandwidth optimization, and file transfer monitoring. Essential for enterprise document management and workflow automation125430
docNameStringPDF4me document name reference - The name of the processed document for reference and tracking purposes. This matches the fileName for consistency in document management workflowspdf_metadata.json
metadataExtractedBooleanPDF4me metadata extraction confirmation - Boolean flag confirming that metadata has been successfully extracted from the PDF document. Useful for verifying that metadata extraction was applied correctlytrue
metadataFieldsNumberPDF4me metadata fields count - The number of metadata fields that were successfully extracted from the PDF document. Useful for tracking extraction completeness and document analysis results25

N8N Action Response

The PDF4me Get PDF Metadata API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

[
{
"success": true,
"message": "PDF metadata extracted successfully",
"fileName": "pdf_metadata.json",
"mimeType": "application/json",
"fileSize": 125430,
"docName": "pdf_metadata.json",
"metadataExtracted": true,
"metadataFields": 25
}
]

Use Cases

Document Analysis and Inspection

  • Extract document properties and technical information for compliance auditing
  • Analyze PDF structure and content for quality assessment and validation
  • Inspect document metadata for security analysis and content verification

Content Management and Organization

  • Extract metadata for automated document categorization and tagging
  • Analyze document properties for search optimization and indexing
  • Process document information for content management system integration

Enterprise Document Intelligence

  • Automate metadata extraction in document processing workflows
  • Analyze document properties for business intelligence and reporting
  • Extract technical details for document lifecycle management and archiving

Get Help