Home Search

DriveWorks Pro 22
PDF: Remove PDF Pages

Send Feedback

PDF: Remove PDF Pages

This Specification Task will remove the given pages inside a PDF file.


Property NameDescription
TitleChanges the Title (not the name) of the task.
PDF FileThe path to the PDF file to remove pages.

Relative paths are resolved to the Specification directory if no prefix is defined.

Accepted prefixes: <Project>, <Specification>, <SpecificationMetadata>, <GroupContent>

Page RangeUse '*' or leave empty to select all pages.

Also accepts pipebar delimited list of page numbers, e.g. '1|2|3', or a range using a hyphen, e.g. '1-3'.


When this Task is added the properties are static. To be able to build rules on a static property see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleMeaning
PDF FileD:\DriveWorks\ProductGuide.pdfWill remove pages from the ProductGuide.pdf document.
Page Range2|4|5Will remove pages 2, 4 and 5.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:


  • Successfully removed page(s): <page numbers>.

Success with Warnings

  • N/A - Should never be fulfilled.


  • The PDF file could not be found or accessed.
  • The file given does not have a valid .pdf extension.
  • The page range is invalid or refers to pages which do not exist.