Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

DynaPDF.FlattenForm

Flatten forms.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.2 Yes Yes Yes Yes Yes

MBS( "DynaPDF.FlattenForm"; PDF )

Parameters

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

Result

Returns OK or error message.

Description

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.

Examples

Make all forms flat:

MBS( "DynaPDF.FlattenForm"; $PDF )

See also


DynaPDF.FlattenAnnots   -   DynaPDF.FlushPages

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins