Envelope returned by readPdf.
has_text is the OR across pages — false for image-only scans, which agents should detect and route through ocrPdf. metadata is present when args.include_metadata is not explicitly false AND the PDF carries any doc-level metadata.
has_text
metadata
args.include_metadata
Optional
When pages slicing was applied, this carries the original page count for callers that need to know how much they didn't read.
pages
Envelope returned by readPdf.
has_textis the OR across pages — false for image-only scans, which agents should detect and route through ocrPdf.metadatais present whenargs.include_metadatais not explicitly false AND the PDF carries any doc-level metadata.