ImageGear v26.3 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF Namespace / ImGearPDFDocument Class / FlattenFormFields Method
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
    FlattenFormFields Method
    In This Topic
    Flattens and removes all AcroForm fields and the AcroForm itself.
    Syntax
    'Declaration
     
    Public Sub FlattenFormFields( _
       ByVal forPrinter As Boolean _
    ) 
    'Usage
     
    Dim instance As ImGearPDFDocument
    Dim forPrinter As Boolean
     
    instance.FlattenFormFields(forPrinter)
    public void FlattenFormFields( 
       bool forPrinter
    )
    public: void FlattenFormFields( 
       bool forPrinter
    ) 
    public:
    void FlattenFormFields( 
       bool forPrinter
    ) 

    Parameters

    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 function will also will remove any XFA data, if present.
    See Also