# Core.PageDocument

## Content

# Class: PageDocument

[Core](../modules/Core).PageDocument

Represents a rendered report document.

**`example`**
```ts
const document = {} as PageDocument;
```

## Table of contents

### Methods

- [print](Core.PageDocument#print)

## Methods

### <a id="print" name="print"></a> print

▸ **print**(`renderOptions?`, `onProgress?`, `checkCancel?`): `Promise`<`void`\>

Displays the browser's print dialog for the rendered document.

**`example`**
```ts
const document = {} as PageDocument;
await document.print();
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `renderOptions?` | [`RenderOptions`](../modules/Core#renderoptions) | The rendering options to use. |
| `onProgress?` | (`pageCount`: `number`) => `void` | The callback invoked with the current page count. |
| `checkCancel?` | () => `boolean` | The callback that indicates whether to cancel printing. |

#### Returns

`Promise`<`void`\>

A promise that resolves when the print operation completes.
