Skip to content
VeryPDF Knowledge Base

VeryPDF Knowledge Base

Knowledge Base to VeryPDF Products

  • Home
  • Products
    • PDF to Any Converter
      • PDF to Word Converter
      • PDF to Word OCR Converter
      • PDF to Excel Converter
      • PDF to Excel OCR Converter
      • PDF to Text Converter
      • PDF to Text OCR Converter
      • PDF to HTML Converter
      • PDF Extract TIFF
      • PDF to Image Converter
      • PDF to PowerPoint Converter
    • Any to PDF Converter
      • AutoCAD to PDF Converter
      • PCL to PDF Converter
      • Image to PDF Converter
      • Image to PDF OCR Converter
      • HTML to PDF Converter
      • Document Printer
      • Document Converter
      • PowerPoint to Flash Converter
      • PowerPoint Converter
      • Free Text To PDF Converter
      • Metafile To PDF Converter
      • Office to Any Converter
    • PDF Utilities
      • PDFcamp Printer
      • PDF Editor
      • PDF Password Remover
      • Encrypt PDF
      • PDF Stamper
      • PDF Print
      • PDF Form Filler
      • Advanced PDF Tools
      • PDF Split-Merge
      • PDF Size Splitter
      • PDF Manual Splitter
      • PDF Optimizer
      • PDF Crop
      • PDF to PDF/A Converter
      • PDF Batch Print
    • Graphics Tools
      • TIFF Toolkit
      • Raster to Vector Converter
      • PDF to Flash Flip Book Converter
      • Image to Text OCR Converter
    • Business & OCR
      • PDF to Excel Converter
      • PDF to Excel OCR Converter
      • Scan to Excel OCR Converter
      • PDF to Word Converter
      • PDF to Word OCR Converter
      • Scan to Word OCR Converter
      • Office to Any Converter
      • Screen OCR
      • TIFF Toolkit
    • Multimedia
      • Flash to Image Converter
      • PowerPoint to Video Converter
      • Flash to Animated GIF Converter
      • PowerPoint to Flash Converter
      • PowerPoint Converter
    • Virtual Printer
      • PDFcamp Printer
      • Document Printer
      • Document Converter
      • Mini EMF Printer Driver
    • Development
      • Doc Converter COM Component
      • PDF Editor OCX Control
      • PDF to Text Converter SDK
      • Image to PDF Converter SDK
      • Image to PDF OCR Shell
      • HTML Converter Command Line
      • PDF to Image Converter SDK
      • PCL to PDF Converter SDK
      • PDF Password Remover SDK
      • Encrypt PDF SDK
      • PDF Split-Merge SDK
      • PDF Stamp SDK
      • PDF Print SDK
      • PDF Form Filler OCX
      • Advanced PDF Tools SDK
      • PDF Editor Toolkit SDK
      • Document Converter SDK
    • Customization
      • Custom Development Solution
    • More >>
  • Solutions
    • Web Viewer Solution
    • Web Annotator Solution
    • OCR Solution
    • PDF to Office Solution
    • PDF Form Filler Solution
    • Document Security Solution
    • Printer Intercept and Capture
    • PDF Extraction Solution
    • Paperless Printing Solution
    • Document Conversion
    • PDF Digital Signature
    • More >>
  • Blog
    • Advanced PDF Tools
    • docPrint Pro
    • PDFcamp Printer
    • PDF Editor
    • PDF Print
    • OCR Products
    • HTML to PDF Converter
    • PDF to Image Converter
    • Image to PDF Converter
    • PDF to Word Converter
  • Company
    • About Us
    • Contact Us

How to Add Custom Fields to PDF Files Using VeryPDF PDFTools (And Avoid Common Errors), with an emphasis on troubleshooting the issue of corrupted PDF files and field visibility in PDF viewers like Adobe Acrobat and NitroPDF Pro

Posted on 2025/07/31Author VeryPDF / 555 Views

Many organizations—especially those managing large volumes of scanned documents—often need to embed metadata directly into PDF files. This metadata can include document names, scanning equipment used, software versions, scan timestamps, and contractor details. VeryPDF PDFTools offers a powerful and flexible way to do this via command-line automation.

However, some users may encounter issues where the custom metadata does not appear in Adobe Acrobat or causes corruption warnings in NitroPDF Pro. Let’s walk through a real-world scenario, diagnose the problem, and show you how to add custom fields properly.


A Common Customer Issue

A registered customer of VeryPDF PDFTools recently reached out with the following problem:

“I have created a batch file to add custom fields and data to PDFs. The commands seem to work, but when I open the PDFs in Adobe Acrobat, the custom fields don’t appear. In NitroPDF Pro, I get an error saying the file is corrupted and must be fixed. What’s causing this, and how can I fix it?”

The customer provided a batch file that included commands like the following:

@echo off
pdftools.exe -i "example.pdf" -o "updated\example.pdf" -y "Document Name=JDC-C-36-09267-CALEB,Make of Scanner=nextScan,Model of Scanner=FlexScan,Make of Scanner=nextScan FlexScan,Name of Software Used=Auditor,Date/Time of Scan=2025:7:29 14:0:21,Contractor=VeryPDF Inc."

Everything looked syntactically correct—except one critical detail.


Contact Us for Custom Development Solutions
Response within 24 hours

Why This Causes Errors in PDF Viewers

The issue lies in the field name "Date/Time of Scan".

While VeryPDF PDFTools supports custom metadata fields, you must avoid using forward slashes ("/") or other special characters in field names, because these characters are reserved in the PDF specification. Specifically, the forward slash is a delimiter used by the PDF language for naming objects, and using it within a custom key can lead to malformed metadata and viewer compatibility issues.

PDF viewers like NitroPDF or Adobe Acrobat may flag these files as corrupted, refuse to show the metadata, or attempt to repair them—leading to the behavior the customer experienced.


The Correct Way to Add Custom Fields

The solution is simple: replace invalid characters with acceptable alternatives, such as spaces or camel case. For instance:

❌ Date/Time of Scan
✅ DateTime of Scan or Date Time of Scan

Here’s the corrected version of the customer's command:

pdftools.exe -i "example.pdf" -o "updated\example.pdf" -y "Document Name=JDC-C-36-09267-CALEB,Make of Scanner=nextScan,Model of Scanner=FlexScan,Make of Scanner=nextScan FlexScan,Name of Software Used=Auditor,DateTime of Scan=2025:7:29 14:0:21,Contractor=VeryPDF Inc."

This updated command ensures the custom fields are written properly, appear in PDF metadata properties, and do not trigger corruption warnings in third-party viewers.

How to Add Custom Fields to PDF Files Using VeryPDF PDFTools (And Avoid Common Errors), with an emphasis on troubleshooting the issue of corrupted PDF files and field visibility in PDF viewers like Adobe Acrobat and NitroPDF Pro


Additional Tips for Adding Metadata with PDFTools

  1. Use Descriptive, Safe Field Names
    Stick to letters, numbers, and spaces. Avoid characters like /, \, :, *, ?, ", <, >, and |.
  2. Batch Process Safely
    When using batch files to update multiple PDFs, always test with a single file first to ensure the metadata is applied correctly.
  3. Check the Output Files
    After processing, open your PDFs in Adobe Acrobat or another standards-compliant viewer and check under:
    File → Properties → Additional Metadata (or Description tab)
  4. Avoid Redundant Fields
    In your original command, you have Make of Scanner=nextScan and Make of Scanner=nextScan FlexScan. This repetition may be unnecessary. Consider condensing to:
    Make and Model of Scanner=nextScan FlexScan

Full Working Example

@echo off
Z:
cd "Z:\GPO\Jacket_432-389\Fiche\Dept. of Interior NY-OR-2"
md "_updated"

pdftools.exe -i "JDC-C-36-09267-CALEB HYATT HOUSE, SCARSDALE, NY-NA-000036.PDF" -o "_updated\JDC-C-36-09267-CALEB HYATT HOUSE, SCARSDALE, NY-NA-000036.PDF" -y "Document Name=JDC-C-36-09267-CALEB,Scanner Make=nextScan,Scanner Model=FlexScan,Scanner=nextScan FlexScan,Software Used=Auditor,DateTime of Scan=2025:7:29 14:0:21,Contractor=VeryPDF Inc."

Repeat for each file, adjusting field values as needed.


Summary

Adding custom metadata fields to PDF files using VeryPDF PDFTools is a powerful way to keep scanned document archives organized and searchable. But small syntax issues—especially with field names—can result in unexpected viewer errors or metadata not being saved correctly.

Avoid using slashes and special characters in field names, and your metadata will be safely embedded and fully compatible across PDF viewers.


Need Help?

If you encounter any issues or have questions about batch processing, command-line formatting, or PDF field compatibility, our support team is ready to help.

Visit: https://www.verypdf.com/app/advanced-pdf-tools/

Or contact us via the support channel you used to register your product.

Contact Us for Custom Development Solutions
Response within 24 hours

Related Posts

  • How to Reliably Replace Text in PDF Files with VeryPDF PDF Text Replacer Command Line (pdftr.exe)
  • How to Solve Issues with -detach-embedded-files in VeryPDF PDF Extract Tool
  • How to Convert an Editable PDF with Variable Data into a Static PDF: A Step-by-Step Guide
  • [Solution] Automatically Replacing Low-Resolution Images in PDF Files with High-Resolution Image files. How can I replace Image in PDF Programmatically (using command line ideally)?
  • [Solution] VeryPDF PDF Redaction Solution: Securely Remove Sensitive Content with pdftr.exe
  • Understanding Windows SPL and SHD Files and How to Convert Them to PDF with VeryPDF SPL to PDF Converter Command Line
  • How to Convert PostScript Files to PDF and Add Barcodes/QR Codes Using VeryPDF PostScript to PDF Converter and PDFStamp Command Line SDK Tools
  • [Solution] VeryPDF Document Conversion and Automation Service – Optimize PDF Workflows, Batch File Processing, and Compliance at Scale
  • How to Use PDF Editor Toolkit Pro SDK to Merge and Combine Digitally Signed PDF Files Securely
  • Placing a Text Stamp on the Last Page of a PDF with the -SR Parameter in VeryPDF PDF Stamp Command Line
  • How to use Advanced PDF Tools to modify ModDate (Modification Date) and CreationDate fields in PDF file?
  • Advanced PDF Tools Command Line product does not set the valid /ID array into PDF file
  • How to register your Advanced PDF Tools Command Line?
  • How to organize PDF page in batch without opening PDF files?
  • Set the permission of copying text of a pdf file using command line

Related posts:

Question on fields array in Interactive PDF Form Dictionary
Attach a file to a pdf using Advanced PDF Tools Command Line
How to convert image2pdf and edit moddate for your image file?
How to remove pdf private data to reduce pdf size
How to change pdf margin offset using command line
Convert Excel to EMF via command line
How to convert WMF to PDF?
How to handle PDF file in various aspects?
Category: Advanced PDF Tools Tag: acrobat metadata, add fields, add info, add metadata, adobe acrobat, adobe error, batch edit, batch processing, command batch, command line, custom document, custom fields, custom metadata, document fields, document info, document metadata, edit metadata, field naming, fix metadata, fix pdf, invalid characters, metadata batch, metadata error, metadata fields, metadata issue, metadata pdf, nitro pdf, pdf automation, pdf batch, pdf command, pdf corruption, pdf data, pdf edit, pdf fix, pdf help, pdf info, pdf instructions, pdf metadata, pdf metadatafix, pdf properties, pdf scanners, pdf software, pdf tips, pdf tools, pdf viewer, scanned pdf, scanner info, verypdf support, verypdf tools

Post navigation

Previous PostCross-platform PDF overlay solutions for developers working on Windows Server and Linux VMs
Next PostHow to Ensure Full Font Embedding and PDF/A-3 Compliance When Converting PCL to PDF

Custom Development Services

VeryPDF offers customized development services to meet your unique business needs, including PDF Processing, Document Automation, Document Analysis, Format Conversion, OCR, DRM, Barcode Solutions, Virtual Printer, Digital Signature, AI Integration, and more. Contact us today to get a personalized solution!

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • VeryPDF.com
  • VeryDOC.com
  • VeryUtils.com
  • imPDF.com

Recent Solutions

  • image_thumb.png[Solution] Secure Redaction of PII and Sensitive Data from PDFs Without Clo…
  • image_thumb.png[Solution] VeryPDF AI-Powered Smart Redact Server Solution: Permanently Rem…
  • image_thumb.png[Solution] VeryPDF SDK for Android Platform: Offline PDF Viewer, Editor, An…
  • image_thumb.png[Solution] VeryPDF Text to PDF Converter: The Complete Solution for Convert…
  • image_thumb.png[Solution] VeryPDF PDF Redaction Solution: Securely Remove Sensitive Conten…

Recent Posts

  • image_thumb.png[Solution] Secure Redaction of PII and Sensitive Data from PDFs Without Clo…
  • image_thumb.pngMigrating PDF Solutions for Linux: Transitioning from 32-bit PDF Toolbox Co…
  • c741fafe-a19a-405c-b8a0-04fc07161d0d.pngWhy Apryse Users Should Consider Switching to VeryPDF Smart Redact Server f…
  • 0215d862-d9d4-47da-9ed4-94dbedfdc41a.pngVeryPDF Smart Redact Server vs Foxit PhantomPDF Faster, Safer, and Fully Of…
  • 29a17eec-631c-48f8-b935-69ab48eeed8e.pngComparing Nitro PDF and VeryPDF Smart Redact Server Which Redaction Tool Me…

Categories

Archives

Calendar

July 2025
M T W T F S S
« Jun   Aug »
 123456
78910111213
14151617181920
21222324252627
28293031  
© 2026 VeryPDF Knowledge Base / VeryPDF.com / VeryDOC.com / VeryUtils.com / Support
Contact
Us