Skip to main content
Extracts text using OCR. With a destination folder the text is also stored as a .txt asset; without one it is returned only. See Text Extraction.

Signature

UploadAndExtractOptions

Returns

Blocks carries positions, for when you need where the text sits rather than just the concatenated string.

Reading an asset already in Dreep

An uploaded asset doesn’t need re-uploading. ExtractText fetches it in the txt format and returns the plain text:
Results are cached, so repeat reads of the same asset don’t run OCR again. For an asset in a signed folder, set SigningTTL and the SDK attaches exp and sig using your signing secret:
OCR is charged per page at your plan’s usage rate, from your included usage or your credit. PDFs can have up to 5 pages on Free, 20 on Starter and 50 on Pro. See Errors & Retries for what happens when your credit runs out.