CloudConvert icon

CloudConvert

Use CloudConvert to convert files, create thumbnails, merge files, add watermarks and more!

Overview

This node operation extracts specific pages or page ranges from a PDF file. It is useful when you need to isolate certain pages from a larger PDF document, such as extracting chapters, sections, or important pages for separate use or distribution. For example, you can extract pages 1, 2, and 5 to 7 from a PDF to create a new document containing only those pages.

Use Case Examples

  1. Extract pages 1, 2, and 5-7 from a PDF file to create a new PDF containing only those pages.
  2. Isolate the first three pages of a report for quick sharing.

Properties

Name Meaning
Authentication Method used to authenticate with the CloudConvert API, either OAuth2 or API Key.
Binary Input Data Whether the input PDF file is provided as binary data in a specified binary property.
Input File Contents The text content of the PDF file to upload, used if Binary Input Data is false.
Binary Property Name of the binary property containing the PDF file data, used if Binary Input Data is true.
Pages Single pages or page ranges to extract from the PDF, e.g., "1,2,5-7"; page numbering starts at 1.

Output

JSON

  • extractedPages - The extracted pages from the PDF as a new PDF file content or reference.

Dependencies

  • CloudConvert API

Troubleshooting

  • Ensure the input PDF file is correctly provided either as binary data or text content depending on the 'Binary Input Data' setting.
  • Verify the 'Pages' parameter format is correct, e.g., "1,2,5-7" with valid page numbers.
  • Authentication errors may occur if the API key or OAuth2 token is invalid or expired; re-authenticate as needed.

Links

Discussion