Interface DocumentMetadata

Metadata describes the input document content.

Set this in Part.document_metadata or FunctionResponsePart.document_metadata when inline_data or file_data contains a document to configure static document preprocessing.

interface DocumentMetadata {
    contentLayers?: DocumentMetadataContentLayer[];
    endPage?: number;
    startPage?: number;
}

Properties

Content layers to return. If empty, defaults to [PAGE_IMAGE] when DocumentMetadata is set. When DocumentMetadata is not set, default document processing is used (for example, page images for PDFs).

endPage?: number

Optional. 1-indexed inclusive end page.

startPage?: number

Optional. 1-indexed inclusive start page.