← Files GoodMemARCHIVED FILE
skills/goodmem-sdk/references/typescript/models/OcrDocumentFromBytesRequest.md
1.17 KB · Oct 2, 2026 · 00:24 UTC
<!-- sdk-ref package=@pairsystems/goodmem registry=npm version=0.1.6 -->
# OcrDocumentFromBytesRequest
```ts
export type OcrDocumentFromBytesRequest = Prettify<OcrDocumentMetadata & {
bytes: Uint8Array | ArrayBuffer;
}>;
```
Effective request fields (including inherited fields and overrides):
- `bytes` (`ArrayBuffer | Uint8Array<ArrayBufferLike>`, required):
- `endPage` (`number | null | undefined`, optional): 0-based inclusive end page
- `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: 5ce6d99be830d8ba2068a72adad7433f7c09dd17e2dbd26f22e5152b491c1bff