Autype icon

Autype

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

Document Tool → Get Metadata

AI-generated

Summary

Extract PDF metadata (page count, title, author) for a given file ID.

Inputs

  • fileId (required) — ID of the file uploaded via the File resource. Use File > Upload to get a file ID.
  • waitForCompletion — Whether to wait for the tool job to complete before returning. Defaults to true.
  • downloadOutput — Whether to automatically download the output file as binary data after completion. Requires waitForCompletion to be true.

Output shape

PDF metadata as a JSON object containing details such as page count, title, and author. If waitForCompletion is true and downloadOutput is true, binary data of the output file is also returned alongside the metadata.

The operation sends a POST request to /tools/pdf/metadata with the provided fileId. Job status polling and optional binary download are handled via the waitForCompletion and downloadOutput parameters.

Links

Discussion