Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  


Sets page height.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetPageHeight"; PDF; Height )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Height The new page height. 1000


Returns OK on success or error.


Sets page height.
The function changes the height of the currently open page if any, or the default height for newly created pages. This function changes the media box of a page (see also DynaPDF.SetBBox). The page height must be greater zero. You can change the page of current page or outside a page the size of new pages.
10cm is about 283 points, unless you changed units (DynaPDF.SetUserUnit). Calculate with cm value divided by 2.54 cm/inch and multiplied with 72 points per inch.
See also DynaPDF.SetPageFormat and DynaPDF.SetPageWidth.

Common paper formats and sizes in points:

FormatSize in units (Width x Height)
DIN A3842.0 x 1191.0
DIN A4595.0 x 842.0
DIN A5419.0 x 595.0
DIN B4709.0 x 1001.0
DIN B5499.0 x 709.0
DIN B6354.0 x 499.0
DIN C3918.0 x 1298.0
DIN C4649.0 x 918.0
DIN C5459.0 x 649.0
DIN C6323.0 x 459.0
DIN C65323.0 x 649.0
DIN DL312.0 x 624.0
DIN E4623.0 x 879.0
DIN E5439.0 x 624.0
DIN E6312.0 x 439.0
DIN E65312.0 x 624.0
DIN M5439.0 x 632.0
DIN M65317.0 x 632.0
US Legal612.0 x 1008.0
US Letter612.0 x 792.0

See also SetPageHeight function in DynaPDF manual.


Sets page size:

Set Variable [$r; Value:MBS("DynaPDF.SetPageWidth"; $pdf; 500)]
Set Variable [$r; Value:MBS("DynaPDF.SetPageHeight"; $pdf; 500)]

See also

Example Databases

Blog Entries

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

DynaPDF.SetPageFormat - DynaPDF.SetPageLayout

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat