The Extract PDF Pages activity extracts a specified range of pages from a PDF document and returns those pages as a new PDF document.
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.
Source |
Required 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. |
result |
Type: Number[] The byte content of the PDF document containing the extracted pages. |
totalPages |
Type: Number The total number of extracted pages. |
For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.
This activity does not work when the device has intermittent connectivity to the network.