Skip to main content

Task PDF - Remove Page​

The PDF - Remove page(s) Task deletes pages from PDF files.

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

Remove page(s): Main settings tab​

Main settings tab of the Remove page(s) Task, with the Password for file(s) box and the Page range box

  • Password for file(s): the password that opens the source PDF files, if they are protected

  • Page range: the pages to delete: page numbers and ranges separated by commas, for example 2-4 or 1,3,5-6. An entry that is not a page number or a valid range is ignored

    The box is required. A page number larger than the page count raises an error.

warning

Enter each page once. When a page number repeats or ranges overlap, for example 2-4,3, the Task also deletes pages that are not in the list.

File filter tab​

The File filter tab selects the PDF files to delete pages from; see File Filter. If the filter has a Credential, the Task uses it while it reads and writes the files. When the logon with the Credential fails, the Task continues as the account that runs the Server and writes the error to the Server log.

Destination tab​

Destination tab of the Remove page(s) Task, with the Save to.. group and the Folder and File mask boxes

  • Same file (Save to.. group): saves the changed file over the source file

  • Same folder but use file mask: saves the changed file in the folder set on the File filter tab, named by File mask

  • Different folder and use file mask: saves the changed file in Folder, named by File mask

  • Folder: the destination folder for Different folder and use file mask; click the folder button to browse

  • File mask: builds the new file name from the source file name, by the renaming standard set in Main - Settings

    The default * keeps the source file name.

warning

Same file replaces the source file. With the default File mask *, Same folder but use file mask also replaces a source file that is in the File filter folder. A file that already has the new name is replaced without a prompt.

When Include sub folders is checked on the File filter, Same folder but use file mask saves every result in the File filter folder, not in the subfolder the source file came from.

Output and errors​

The Task output contains "Success" for each file it saves.