Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Flatten forms.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.2 Yes Yes Yes Yes Yes
MBS( "DynaPDF.FlattenForm"; PDF )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf


Returns OK or error message.


Flatten forms.
Draws all form fields on the corresponding pages and deletes the form fields, incl. corresponding JavaScripts and JavaScript actions. The resulting PDF pages look after flattening as if the form were printed.
Note that this function does not support XFA forms. If the form is a hybrid form, the PDF form fields will be flattened. A maybe existing XFA form will be deleted but not flattened.
Fields, which are invisible for printing, due to an absent print flag, or if the hidden flag was set, are excluded from flattening. These fields are deleted without drawing them on the page.
This function is especially useful if a large amount of Interactive Forms (which are already filled out by the user) should be prepared for printing, or if the forms should be archived without allowing further changes. Flattened forms require less disk space and can be printed faster.

XFA Forms which are created by Adobe's Designer are not fully supported. Only hybrid forms can be flatted.

Requires DynaPDF Pro license.

See also FlattenForm function in DynaPDF manual.


Make all forms flat:

MBS( "DynaPDF.FlattenForm"; $PDF )

See also

Blog Entries

Created 18th August 2014, last changed 9th February 2015

DynaPDF.FlattenAnnots   -   DynaPDF.FlushPages

Feedback: Report problem or ask question.

MBS FileMaker Plugins