createDocumentLayout Function
Public function for createDocumentLayout.
Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.
ES module import: import { createDocumentLayout } from '@txtextcontrol/tx-sheet-control';.
Syntax
createDocumentLayout(workbook, options)
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
workbook | WorkbookInstance | No | Value matching workbook's declared type and the owning object's validation rules. |
options | WorkbookPdfOptions | No | Supported settings for this operation; omitted settings retain documented defaults. |
Return Value
{ version: 1; plan: any; pages: any; renderPage: (number: number) => PageScene; [Symbol.iterator](): Generator<PageScene, void, unknown>; }.
Examples
Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.
import { createDocumentLayout } from '@txtextcontrol/tx-sheet-control';
function useCreateDocumentLayout(workbook, fonts) {
const result = createDocumentLayout(workbook, { fonts: fonts });
console.log(result);
}