Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.AllowPageBreak

Defines how to handle page breaks.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.AllowPageBreak"; PDF; Allow { ; PosX; PosY; Width; Height } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Allow Whether to allow page breaks.
Can be 1 to allow or 0 to disallow.
0
PosX The X position of new text rectangle on the new page. 100 Optional
PosY The Y position of new text rectangle on the new page. 100 Optional
Width The width of new text rectangle on the new page. 400 Optional
Height The height of new text rectangle on the new page. 600 Optional

Result

Returns OK or error.

Description

Defines how to handle page breaks.
By default DynaPDF.WriteFText and DynaPDF.WriteFTextEx functions stop when text rectangle is filled.
If you allow a page break, the plugin will start a new page and add text there.
If you pass all 6 parameters, we use the new rectangle for the following pages.

Deprecated. Please use DynaPDF.SetPageBreakExpression instead for future development.

See also AllowPageBreak function in DynaPDF manual.

Examples

Disable page break:

MBS("DynaPDF.AllowPageBreak"; $pdf; 0)

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 17th July 2022


DynaPDF.AddValToChoiceField - DynaPDF.AppendImagePage