Split/Extract pages

This tool is used to split or extract pages from PDF documents, thereby creating new PDF documents with the pages that are extracted. With the powerful split rules interpreter we can easily specify which pages, or range of pages that we want to extract.

Split pages tool screenshot

In the Split/Extract rules edit box we can enter the expression that defines the split operation we want to perform.

The split rules syntax that can be used can be checked at any time by using the yellow question mark symbol at right of the rules editor. If we move the mouse pointer over it, the below hint window shows up:

Split pages hint screenshot

The output folder info edit is used to specify the folder where the new files are going to be created. By default, it is filled by the submitted files folder.

The output filename field is used to specify the output filename composition expression. Using some constants, quickly entered using the at right popup menu, as shown in the above tool screenshot, it is possible to make the output filename dynamic in a way that express the split operation that produced it.
Supported constants:

[F] - To reference the split source file name.

[1SP4] - To reference the source file name start page index the generated file has as first page. The left 1 is optional, can be any positive integer number, and it's used to offset this index. The right 4 can be any integer number, and it is used to specify the 0 padding to the desired size.

[1EP4] - As the previous one, but to the reference the last page index contained in the output file.

[1SPL4] - This reference the start page label. Each page in a PDF document is identified by an integer page index that expresses the page’s relative position within the document, the one referenced with the two above constants. In addition, a document may optionally define page labels to identify each page visually on the screen or in print. Page labels and page indices need not coincide: the indices are fixed, running consecutively through the document starting from 0 for the first page, but the labels can be specified in any way that is appropriate for the particular document. For example, if the document begins with 12 pages of front matter numbered in roman numerals and the remainder of the document is numbered in Arabic, the first page would have a page index of 0 and a page label of i, the twelfth page would have index 11 and label xii, and the thirteenth page would have index 12 and label 1. The constant optional left number and right number have the same function as for the start and end page index constants, but in here are only used if the page label is numeric only.

[1EPL4] - As the previous one, but to the reference the last page label contained in the output file.

[GI] - To reference the split group index. When defining a split rule, we can define more than one group of rules, separating these groups with the semicolon ';' character. These groups are treated as individual and result always in separate documents. 1-5,10; 6-8,10 : Two split groups. First will result in a PDF with pages 1 to 5 and 10 (split group index variable equal to 1), and a second PDF with pages 6 to 8 and 10 (split group index variable equal to 2). odd; even : we get a PDF with all the odd pages, and another with all the even pages. The "split group index" variable will be 1 for the "odd" rule and 2 for the "even" rule. With this variable we can reflect this group index in the output filename.

[1FC4] - To reference the number of output files already created, within the current split group.

[BN] - Used only when splitting by top-level bookmarks, to reference the bookmark name.

Command line interface:

Function name: Split
Options: - [] means optional parameter
[OutputPath=] - Full path where to place new created documents. Default to source filename directory.
[SplitRules=] - Rules to use in the split operation, see tool help for rules format. Default to the "x1" rule
[OutputFilename=] - Output filename composition expression. Default to the internal composition schema.
[-IncludeLayers] - To include page layers
[-IncludeBookmarks] - To include Bookmarks
[-s] - Silent mode. Run without showing the interface (only available for licensed users)
fileslist - List of files to Split; Separate files using the semicolon";" char. Must be the last parameter
 
Example:
"c:\Program Files\PDF-ShellTools\PDFShellTools.exe" Split -IncludeLayers "OutputPath=c:\tmp" SplitRules=odd;even "OutputFilename=[F][1SP4]-[1EP4]" -s "c:\somefolder\file1.PDF;c:\somefolder\file2.PDF"

 

(c) 2006-2017 RTT