# Type Alias: PageImage

[Mobile Document Scanner API Reference](../index.md) / PageImage

# Type Alias: PageImage

> **PageImage** = [`RasterImage`](../interfaces/RasterImage.md) \| [`VectorImage`](../interfaces/VectorImage.md)

Defined in: [src/results.ts:106](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/results.ts#L106)

The image of a page. The document scanner decodes or draws nothing until the host
application calls a method.

[original](../interfaces/ScannedPage.md#original) keeps the blob that the page arrived as,
and works as long as the page object exists. The document scanner reads
[processed](../interfaces/ScannedPage.md#processed) again on each call. Thus the methods of
`processed` reject when the page is no longer in the document: after the user
deletes it, or after [cancel()](../classes/DocumentScanner.md#cancel),
[reset()](../classes/DocumentScanner.md#reset), or [dispose()](../classes/DocumentScanner.md#dispose)
deletes the pages. To keep the processed image, call `toBlob()` or `toCanvas()`
before then.
