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

Programmatically search multiple PDF files for keyword and note page number

Posted on 2013/09/222014/05/12Author Ada / 1552 Views

Question: I want to search keywords in hundred of PDF files in a directory, I want want to search the keywords in metadata in PDF files, how can I do this work?

Can VerPDF direct me to the right resources so I may accomplish this task? Thanks.

Answer: According to your needs, software VeryPDF Advanced PDF Tools SDK, which provides library for searching this directory for a specific species name and generate a list of the documents that match the keyword, and the corresponding page number. This software allows you to do searching PDF metadata in batch. After searching, all the PDF metadata like file name, PDF version, security, file page count, title, author, etc. will be shown under MS Dos Window if you use command line tool. Please get more details on homepage, in the following part, let us check how to use this software.

Step 1. Free download Advanced PDF Tools SDK

  • When downloading finishes, you will get a zip file. You need to extract it to folder then you can open it normally.
  • There are lots of code templates in the extracted folder for your reference. You can find library once you open it.

Step 2. Get PDF metadata for searching multiple PDF files keywords and page number.

    • When you use this function, you may need to use this parameter:

-r: The option -r is to show the detail information of selected PDF files, including file name, PDF version, security, file page count, title, author, etc.
Here is one example:

pdftools -i "C:\input.pdf" –r    

    • When you cal it from VB, please refer to the following code template:

Private Sub VBCOMTest_Click()
Dim nRet As Long
Dim strCmd As String
strCmd = "pdftools.exe" & " -r ""0 0 612 792"" -j ""612 792 true"""
strCmd = strCmd & " -$ XXXXXXXXXXXXXXX"
strCmd = strCmd & " -i C:\test.pdf"
strCmd = strCmd & " -o C:\_test.pdf"
Set PDFToolsCOM = CreateObject("PDFTools.PDFToolsCOM")
nRet = PDFToolsCOM.com_VeryPDF_PDFTools(strCmd)
Set PDFToolsCOM = Nothing
MsgBox (Str(nRet))
End Sub

Please check more examples on SDK user manual. During the using, if you have any question, please contact us as soon as possible.

Related Posts

  • 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
  • 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
  • [Solution] VeryPDF Document Conversion and Automation Service – Optimize PDF Workflows, Batch File Processing, and Compliance at Scale
  • VeryPDF PDF SDK for Developers: Built for Developers, Trusted by Enterprises! Powerful PDF Toolkit for Developers to Edit, Convert, Sign, Secure, and Automate PDF Documents
  • How to Solve Issues with -detach-embedded-files in VeryPDF PDF Extract Tool
  • VeryPDF Cloud API Self-Hosted Solution – Secure PDF Processing, Conversion, Editing, and Automation Toolkit
  • VeryPDF PDF Extract allows you to extract content from PDF files and save it in a structured data format
  • PDF Indexed Search Library for Developers to Search and Highlight Keywords in PDF pages
  • Streamline Form Filling with VeryPDF PDF Form Filler SDK and HTML5 PDF Form Filler Online
  • Set margins of specified pdf pages using command line
  • Delete pdf pages using command line
  • How to remove form actions to reduce pdf size
  • Batch add metadata to a series of PDF’s via an XML file
  • Add copyright information to a pdf using command line

Related posts:

Advanced PDF Tools Request Information
How to convert pcl to ps?
View the effect after setting pdf page size using command line
Edit pdf content right offset of specified pages using command line
Append pdf pages using command line
Encrypt pdf file with open password using command line
Rotating a PDF file via command line
[Solution] VeryPDF Document Conversion and Automation Service – Optimize PDF Workflows, Batch ...
Category: Advanced PDF Tools Tag: pdf metadata

Post navigation

Previous PostUpload PDF and Convert PDF to text online from PHP
Next PostVeryPDF PDF Form Filler- fill PDF form free online

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] Two VeryPDF Virtual Printer Workflows: Inherit Physical Printer …
  • image_thumb.png[Solution] Custom Virtual Printer Workflow Solution with VeryPDF: PDF Captu…
  • image_thumb.png[Solution] Virtual Printer SDK & Custom Development Solutions – P…
  • image_thumb.png[Solution] Capture High-Volume Batch Printing to PDF: Convert a 7,000-Page …
  • image_thumb.png[Solution] How to Enable “Keep Spooler Files” on Windows Printe…

Recent Posts

  • image_thumb.png[Solution] Two VeryPDF Virtual Printer Workflows: Inherit Physical Printer …
  • image_thumb.png[Solution] Custom Virtual Printer Workflow Solution with VeryPDF: PDF Captu…
  • image_thumb.png[Solution] Virtual Printer SDK & Custom Development Solutions – P…
  • image_thumb.png[Solution] Capture High-Volume Batch Printing to PDF: Convert a 7,000-Page …
  • image-20250607_192212_4409.pngHow to Add Freehand Drawing, Shapes, and Text Notes on DRM-Protected PDFs f…

Categories

Archives

Calendar

September 2013
M T W T F S S
« Aug   Oct »
 1
2345678
9101112131415
16171819202122
23242526272829
30  
© 2026 VeryPDF Knowledge Base / VeryPDF.com / VeryDOC.com / VeryUtils.com / Support
Contact
Us