Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Split Pages With Search

Scroll Prev Top Next More

win2pdfd.exe splitpagesaftersearch "sourcefile" "destfolder" "searchtext"

win2pdfd.exe splitpagesbeforesearch "sourcefile" "destfolder" "searchtext"


Split PDF from “sourcefile” into segments based on the contents of the PDF and the  “searchtext” parameter. For the "splitpagesaftersearch" variation, Win2PDF searches the text in the PDF and splits the PDF after it encounters a page with the "searchtext". For the "splitpagesbeforesearch" variation, Win2PDF splits the PDF on the page before "searchtext". Page segments are placed in the “destfolder”, and are named with the original file name with a “.#.PDF” extension.


Any file names, folder paths, or searchtext parameters that contain spaces must be enclosed with quotation marks.


Requires a licensed version of Win2PDF. Contact for a time limited evaluation license.


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