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 / 1864 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

  • PDF/A-3 vs ZUGFeRD: Custom PDF to PDF/A e-Invoice Development with VeryPDF
  • Custom PDF to PDF/A-3 + ZUGFeRD Development by VeryPDF (Simple Guide for Businesses)
  • 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
  • How to change PDF file’s paper size?
  • Edit pdf page content scale using command line
  • Enable fast web view to optimize PDF files
  • How to adjust PDF width & height and delete blank pages?
  • Fit pdf page width to the window of pdf reader via Advanced PDF Tools Command Line

Related posts:

using pdftools to meet user requirements of attaching a CSV and encrypting a PDF
How to edit pdf keywords information by using the Advanced PDF Tools?
How to edit pdf information
Rotate the first page of pdf using command line
Delete specified pdf pages using command line
Resize page of PDF to letter size
VeryPDF PDF Tools- set PDF information/page size/passwords/watermark
PDF Indexed Search Library for Developers to Search and Highlight Keywords in PDF pages
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.pngPDF/A-3 vs ZUGFeRD: Custom PDF to PDF/A e-Invoice Development with VeryPDF
  • image_thumb.pngCustom PDF to PDF/A-3 + ZUGFeRD Development by VeryPDF (Simple Guide for Bu…
  • image_thumb.png[Solution] VeryPDF Virtual Printer Driver SDK OEM Licensing, Full Source Co…
  • 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…

Recent Posts

  • image_thumb.pngHow to Automatically Convert PDF Customer Orders to Excel Using PDF to Exce…
  • image_thumb.pngPrint Management Software Needs PCL Preview? How to Convert PCL to PDF or I…
  • image_thumb.pngVeryPDF Virtual PDF Printer SDK for Windows: Bundle a PDF Virtual Printer I…
  • image_thumb.pngPCL Converter Command Line Developer License FAQ: Can I Redistribute It wit…
  • image_thumb.pngHow to Highlight Part Numbers in Large PDF Drawings Automatically (Mac and …

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