Autype icon

Autype

Interact with the Autype Developer API for document generation, PDF tools, and more

Document Tool → Keep/Remove Pages

AI-generated

Summary

Keep or remove specific pages from a PDF document using the Autype Document Tool.

Inputs

  • fileId (required) — ID of the file uploaded via the File resource. Use File > Upload to get a file ID.
  • mode (required) — Whether to keep or remove the specified pages.
  • pages (required) — Comma-separated page specifications (e.g. '1,3-5').
  • waitForCompletion — Whether to wait for the tool job to complete before returning. Default: true.
  • downloadOutput — Whether to automatically download the output file as binary data after completion. Requires waitForCompletion to be true. Default: false.

Output shape

json

Returns the processed PDF document data as JSON on completion. If downloadOutput is true and the job status is COMPLETED, returns binary data (file download) instead.

Examples

Example 1: Remove pages 2 and 4 from a PDF

fileId: 'file_123', mode: 'remove', pages: '2,4'

Links

Discussion