TX Sheet Control

createDocumentLayout Type

Interface

Public type for createDocumentLayout.

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.

Syntax

createDocumentLayout(workbook: WorkbookInstance, options: WorkbookPdfOptions): { version: 1; plan: any; pages: any; renderPage: (number: number) => PageScene; [Symbol.iterator](): Generator<PageScene, void, unknown>; }

Parameters

ParameterTypeOptionalDescription
workbookWorkbookInstanceNoValue matching workbook's declared type and the owning object's validation rules.
optionsWorkbookPdfOptionsNoSupported 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

Pass the createDocumentLayout value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

function inspectcreateDocumentLayout(createDocumentLayout: { value: unknown }) {
    const value = createDocumentLayout;
    console.log('createDocumentLayout.value', value);
}

See Also