# createDocumentLayout Type

> createDocumentLayout type alias in the TX Sheet Control TypeScript API for Node.js, with the parameters workbook and options and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > createDocumentLayout Type
- **442 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/createdocumentlayout/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/createdocumentlayout/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/createdocumentlayout/llms-full.txt

---

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

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

### 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

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

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

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [Coordinates.row Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/coordinates/row-property/llms-full.txt)
- **Next:** [createHttpDataProvider Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/createhttpdataprovider-function/llms-full.txt)
