Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line Content Search

Scroll Prev Top Next More

win2pdfd.exe getcontentsearch "sourcepdf" "password" "searchtext"

 

 

Search the PDF file specified by "sourcepdf" for the text specified by "searchtext". If the "searchtext" is found in the PDF file, the text immediately following the "searchtext" is printed to standard out (STDOUT).

 

If the path to "sourcepdf" contains spaces, it must be enclosed with quotation marks. The "sourcepdf" can be a local file path, or an web address (URL) to an existing PDF.

 

If the PDF is password protected, the master password should be provided in the "password" parameter. Otherwise, the parameter should be set to ""

 

The "searchtext" parameter is case sensitive.

 

This command can be used by custom programs, plug-ins, or Power Automate Desktop flows for operations such as renaming based on the contents of the PDF.

 

Requires a licensed version of Win2PDF version 10.0.100 or above. Contact support@win2pdf.com for a time limited evaluation license.

 

Returns 0 on success, and a Windows system error code on failure.