Split PDF



Split PDF is a processor that produces a job folder containing a separate PDF file for each page or range of pages in the incoming PDF file. The tool does not require Adobe Acrobat or any other external application to be installed.

Keywords

Keywords can be used with the search function above the Elements pane.

The keywords for the Split PDF element are:


Connections

Split PDF allows only a single outgoing connection

Properties

Property

Description

Name

The name of the flow element displayed in the canvas

Pages per file

The number of pages in each output file

Filename prefix

The string pattern to be inserted before the filename

Filename suffix

The string pattern to be inserted after the filename (but before the file name extension

Keep page labels Select the "Yes" option in the drop-down menu to retain the page labels from the original file. If you select the "No" option, the resulting files will not contain any page labels

File naming

For each incoming PDF file, the tool creates a job folder that contains the PDF files resulting from splitting the incoming PDF file into sections of one or more pages. The files are named by adding a prefix and/or suffix to the incoming file's name.

In the values of the filename prefix and suffix properties described above, the following character sequences (regardless of case) are replaced by the appropriate number for the file as follows:

sequence

Replaced by

[Index]

The one-based index (in the original file) of the first page stored in this result file

[LastIndex]

The one-based index (in the original file) of the last page stored in this result file

[Label]

The PDF page label of the first page stored in this result file. If the page does not have a label, its one-based index is used

[LastLabel]

The PDF page label of the last page stored in this result file. If the page does not have a label, its one-based index is used.

[LastSourceLabel]

The PDF page label of the last page in the original file. If the page does not have a label, its one-based index is used.

[Total]

The total number of pages in the original file

Note:

For [Index] and [LastIndex], leading zeros are added so that the index has the same number of digits as the total number of pages in the original file

Note:

If the constructed filename contains characters that are not allowed in filenames on Windows (control characters, \, /, :, *, ?, <, > and |), these characters are replaced by a #, even if Enfocus Switch is running on Mac.

Example

This example is based on a PDF file named "Booklet.pdf". It contains 15 pages. The first 4 pages are labled in roman numbers, followed by 2 chapters with respectively 6 and 5 pages, labeled "1-2", "1-3", etc.

Property settings

Resulting files

Default settings:


  • Pages per file = 1

  • Prefix = ""

  • Suffix = "_[Index]"


  • Booklet_01.pdf

  • Booklet_02.pdf

  • ...

  • Booklet_15.pdf


  • Pages per file = 2

  • Prefix = ""

  • Suffix = " pages [index]-[LastIndex] of [Total]"


  • Booklet pages 01-02 of 15.pdf

  • Booklet pages 03-04 of 15.pdf

  • ...

  • Booklet pages 15-15 of 15.pdf


  • Pages per file = 1

  • Prefix = "[Index]"

  • Suffix = "[Label]


  • 01 Booklet i.pdf

  • 02 Booklet ii.pdf

  • 03 Booklet iii.pdf

  • 04 Booklet iv.pdf

  • 05 Booklet 1-1.pdf

  • ...

  • 10 Booklet 1-6.pdf

  • 11 Booklet 2.1.pdf

  • ...

  • 15 Booklet 2-5.pdf