DynaPDF.SetPageLayout
---------------------

The function sets the page layout that is used when opening the document with Adobe's Acrobat.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SetPageLayout"; PDF; Layout ) 

**MBS**( **"DynaPDF.SetPageLayout";** /\* The function sets the page layout that is used when opening the document with Adobe's Acrobat. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Layout**) /\* The page layout can be SinglePage, OneColumn, TwoColumnLeft, TwoColumnRight, TwoPageLeft, TwoPageRight or Default.e.g. "Default" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Layout | The page layout can be SinglePage, OneColumn, TwoColumnLeft, TwoColumnRight, TwoPageLeft, TwoPageRight or Default. | "Default" |

### Result

Returns OK or error message.

### Description

The function sets the page layout that is used when opening the document with Adobe's Acrobat.  
See also [SetPageLayout](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetPageLayout.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetPageCount](DynaPDFGetPageCount.md)
- [DynaPDF.GetPageHeight](DynaPDFGetPageHeight.md)
- [DynaPDF.GetPageLabel](DynaPDFGetPageLabel.md)
- [DynaPDF.GetPageLabelCount](DynaPDFGetPageLabelCount.md)
- [DynaPDF.GetPageLayout](DynaPDFGetPageLayout.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetPageBBox](DynaPDFSetPageBBox.md)
- [DynaPDF.SetPageCoords](DynaPDFSetPageCoords.md)
- [DynaPDF.SetPageHeight](DynaPDFSetPageHeight.md)
- [DynaPDF.SetPageMode](DynaPDFSetPageMode.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.SetPageHeight](DynaPDFSetPageHeight.md) - [DynaPDF.SetPageMode](DynaPDFSetPageMode.md)

[HTML Version](DynaPDFSetPageLayout.shtml)