PrintLayout Interface
DOM-free page descriptions. Source rectangles use unscaled sheet CSS pixels; content/paper use 96 dpi physical pixels. Map source to content using scale, and clip at content.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
Type-only declaration; it is not a JavaScript runtime constructor.
Members
Properties
| Property | Description |
|---|---|
| date | The date value of PrintLayout. |
| dpi | The dpi value of PrintLayout. |
| pageCount | The pageCount value of PrintLayout. |
| pages | The pages value of PrintLayout. |
| paper | The paper value of PrintLayout. |
| range | The range value of PrintLayout. |
| scale | The scale value of PrintLayout. |
| sheetId | The sheetId value of PrintLayout. |
| sheetName | The sheetName value of PrintLayout. |
| units | The units value of PrintLayout. |
| version | The version value of PrintLayout. |
Examples
Pass the PrintLayout value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
import type { PrintLayout } from '@txtextcontrol/tx-sheet-control';
function inspectPrintLayoutVersion(printLayout: PrintLayout) {
const value = printLayout['version'];
console.log('PrintLayout.version', value);
}