Extract PDF Pages Activity

Description

The Extract PDF Pages activity extracts a specified range of pages from a PDF document and returns those pages as a new PDF document.

Usage

Given a multi-page PDF document a workflow might need to extract a subset of pages from the original. The Extract PDF Pages activity accepts either the file path to a PDF document or the byte content of a PDF document and a range of pages to extract. The activity produces a new PDF document containing only the subset of pages. The Write File Bytes activity could write the extracted PDF to disk, or the Create Download activity could generate a URL to the extracted PDF so that an end user could download it.

Environment

The Extract PDF Pages activity is a server activity. It can only be used in server workflows, which require on-premises Workflow.

Offline Support

This activity does not work when the device is offline.

Inputs

Source

Required

Type: String | Number Array

The source PDF document to extract pages from. Either a file path or byte content are accepted.

Bytes are the raw binary values that represent content. A byte array is represented by a list of numbers between 0 and 255. Invalid byte content will cause an error.

One way byte content can be retrieved is by using the Read File Bytes activity.

Start Index

Optional

Type: Number

The zero-based index of the first page to extract. The default is zero.

Number Of Pages

Optional

Type: Number

The number of pages to extract. If not specified all pages after the start index are extracted.

Outputs

result

Type: Number Array

The byte content of the PDF document containing the extracted pages.

totalPages

Type: Number

The total number of extracted pages.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.11