Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Extract PDF Pages Activity

Prev Top Next More

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.

Inputs

Source

Required

Type: String | Number[]

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[]

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.

Connectivity Requirements

This activity does not work when the device has intermittent connectivity to the network.

© 2024 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.42 (58a5caf5)