Doc Studio
Extraction & OCR
Extract readable text and tabular data from PDF files or image batches with optional OCR.
document.extract handles documents and scans. Upload a single multi-page PDF or an ordered array of images (JPG, PNG, WEBP). Text and tables are structured into clean editable output.
Request Schema
uploadIdstringoptionalUsed when extracting from a single PDF file. Mutually exclusive with uploadIds.
uploadIdsstring[]optionalOrdered array of upload IDs representing individual image pages (JPG, JPEG, PNG, WEBP).
ocrbooleanoptionaldefault: trueSet to false for digital-native PDFs to bypass OCR and extract existing text. Images always run with OCR.
Code Example (PDF Extraction)
curl -X POST https://transpera-api-dev-vv55i7vbvq-el.a.run.app/v1/jobs \
-H "authorization: Bearer tp_test_..." \
-H "content-type: application/json" \
-H "idempotency-key: $(uuidgen)" \
-d '{
"operation": "document.extract",
"input": {
"uploadId": "UPLOAD_ID",
"ocr": true
}
}'