← Files GoodMemARCHIVED FILE

skills/goodmem-sdk/references/typescript/models/OcrDocumentFromFileRequest.md

1.11 KB · Oct 3, 2026 · 06:25 UTC

↓ Download file

<!-- sdk-ref package=@pairsystems/goodmem registry=npm version=0.1.6 -->

# OcrDocumentFromFileRequest

```ts

export type OcrDocumentFromFileRequest = Prettify<OcrDocumentMetadata & {
    file: Blob;
}>;
```

Effective request fields (including inherited fields and overrides):

- `endPage` (`number | null | undefined`, optional): 0-based inclusive end page
- `file` (`Blob`, required):
- `format` (`OcrInputFormat | null | undefined`, optional): Input format hint (AUTO, PDF, TIFF, PNG, JPEG, BMP)
- `includeMarkdown` (`boolean | null | undefined`, optional): Include markdown rendering in the response
- `includeRawJson` (`boolean | null | undefined`, optional): Include raw OCR JSON payload in the response
- `startPage` (`number | null | undefined`, optional): 0-based inclusive start page

Helper definitions for the constraints above (kept here to avoid extra page reads):

```ts
export type Prettify<T> = {
    [K in keyof T]: T[K];
} & {};
```

[TypeScript](../../typescript.md)

Related types — open only those used by your request:

- [OcrDocumentMetadata](OcrDocumentMetadata.md)
- [OcrInputFormat](OcrInputFormat.md)

SHA-256: e7e1d12496ea5ec6f2454f57ef21d8f1bd8dfb2f8337bebe7fedf874a223613d