ImageGear v26.3 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF Namespace / ImGearPDFDocument Class / FlattenFormField Method
The field that needs to be flattened.
If true, only the field's widget annotations with the PRINT flag set will be flattened. Others will be removed without flattening. If false, all the field's widget annotations with be flattened, unless its NOVIEW flag is set. These will be removed without being flattened.




In This Topic
    FlattenFormField Method
    In This Topic
    Flattens and removes a single AcroForm field.
    Syntax
    'Declaration
     
    Public Sub FlattenFormField( _
       ByVal field As Field, _
       ByVal forPrinter As Boolean _
    ) 
    'Usage
     
    Dim instance As ImGearPDFDocument
    Dim field As Field
    Dim forPrinter As Boolean
     
    instance.FlattenFormField(field, forPrinter)
    public void FlattenFormField( 
       Field field,
       bool forPrinter
    )
    public: void FlattenFormField( 
       Field* field,
       bool forPrinter
    ) 
    public:
    void FlattenFormField( 
       Field^ field,
       bool forPrinter
    ) 

    Parameters

    field
    The field that needs to be flattened.
    forPrinter
    If true, only the field's widget annotations with the PRINT flag set will be flattened. Others will be removed without flattening. If false, all the field's widget annotations with be flattened, unless its NOVIEW flag is set. These will be removed without being flattened.
    Remarks
    Note that this method should not be used on documents containing XFA data, since the XFA will not be updated. However, FlattenFormFields can safely be used to flatten all fields at once. See documentation for more information.
    See Also