Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Add Bookmark After Search

Scroll Prev Top Next More

PDF Add Bookmark After Search Command Line Format

 

win2pdfd.exe addbookmarkaftersearch "sourcepdf" "title" "searchtext" "destpdf"

 

Search the PDF file specified by "sourcepdf" for the text specified by "searchtext". If the "searchtext" is found in the PDF file, a bookmark is added using the specified "title" and the page number where the search text is found and the modified PDF is saved to "destpdf". If "sourcepdf" and "destpdf" are the same file, the file is modified in place.

 

Any file names or "searchtext" that contain spaces must be enclosed with quotation marks. The "sourcepdf" can be a local file path, or an web address (URL) to an existing PDF.

 

This feature requires a licensed version of Win2PDF. Contact us for a time limited evaluation license.

 

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