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-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
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.
function inspectPrintLayoutVersion(printLayout: { version: unknown }) {
const value = printLayout['version'];
console.log('PrintLayout.version', value);
}