Home > Products > PDF Form Filler


VeryPDF PDF Form Filler OCX user manual


Description:
VeryPDF PDF Form Filler OCX is an ActiveX control that allow you to fill, import, export, print, save and email the PDF forms easily, VeryPDF PDF Form Filler OCX is a very popular tool to fill in PDF forms visually and save the complete PDF Form to disk when finished.

Functions:
BOOL OpenPDF(LPCTSTR strPDFFile)
Description:
    Open a PDF file for filling.
Return value:

    TRUE is success and FALSE is failure.
Parameters:
    strPDFFile: input PDF file.

BOOL ClosePDF()
Description:
    Close current opened PDF file.
Return value:

    TRUE is success and FALSE is failure.
Parameters:
    None.

BOOL EmailFilledPDF()
Description:
    Email the filled PDF file with default email client, such as, MS Outlook, Outlook Express, Foxmail, etc.
Return value:

    TRUE is success and FALSE is failure.
Parameters:
    None.

BOOL EmailFDF()
Description:
    Email the FDF file with default email client, such as, MS Outlook, Outlook Express, Foxmail, etc.
Return value:

    TRUE is success and FALSE is failure.
Parameters:
    None.

BOOL ExportFormData(LPCTSTR strOutFDFFile, LPCTSTR strFileExt)
BOOL ImportFormData(LPCTSTR strInFDFFile, LPCTSTR strFileExt)
Description:
    Export or Import Form Data from/to PDF file.
Return value:

    TRUE is success and FALSE is failure.
Parameters:
    strInFDFFile: input FDF or XML file.
    strOutFDFFile: output FDF or XML file.
    strFileExt: format of input or output file, it can be "xml" or "fdf", "xml" is the XML format and "fdf" is the FDF format.

CString FlattenForms(LPCTSTR strInPDFFile, LPCTSTR strOutPDFFile)
Description:
    Flatten the filled PDF file to a flattened PDF file.
Return value:

    The filename of flattened PDF file.
Parameters:
    strInPDFFile: input PDF file, NULL or "" parameter will flatten current opened PDF file.
    strOutPDFFile: output PDF file.

BOOL EncryptPDF()
Description:
    Save and encrypt current filled PDF file.
Return value:

    TRUE is success and FALSE is failure.
Parameters:
    None.

BOOL EnableSaveWarning(BOOL bEnableWarning)
Description:
    Enable or disable Save Warning Dialog.
Return value:

    Previous value of Save Warning Dialog.
Parameters:
    bEnableWarning: enable or disable Save Warning Dialog.

void RefreshPDF()
Description:
    Reload current PDF file.
Return value:

    None.
Parameters:
    None

void SetLicenseKey(LPCTSTR strLicenseKey)
Description:
    Set License Key to PDF Form Filler OCX to remove restrictions.
Return value:

    None.
Parameters:
    lpLicenseKey: a License Key which issued by VeryPDF.

BOOL EnableInsertButtons(BOOL bInsertButtons)
Description:
    Enable or disable insert buttons when open a PDF file in PDF Form Filler OCX.
Return value:

    Previous value of InsertButtons.
Parameters:
    bInsertButtons: enable or disable insert buttons into PDF file.

void AboutBox()
Description:
    Display copyright and version information.
Return value:

    None.
Parameters:
    None.

Example code:
Private Sub OpenPDF_Click()
    Pdfformocx1.SetLicenseKey "XXXXXXXXXXXXXXXX"
    Pdfformocx1.EnableInsertButtons True
    Pdfformocx1.OpenPDF "C:\form.pdf"
End Sub

Private Sub ClosePDF_Click()
    Pdfformocx1.ClosePDF
End Sub

Private Sub EmailFDF_Click()
    Pdfformocx1.EmailFDF
End Sub

Private Sub EmailPDF_Click()
    Pdfformocx1.EmailFilledPDF
End Sub

Private Sub EncryptPDF_Click()
    Pdfformocx1.EncryptPDF
End Sub

Private Sub ExportForm_Click()
    Pdfformocx1.ExportFormData "C:\out.fdf", "fdf"
    Pdfformocx1.ExportFormData "C:\out.xml", "xml"
End Sub

Private Sub FlattenForm_Click()
    Pdfformocx1.FlattenForms "", "C:\flattened.pdf"
    Pdfformocx1.FlattenForms "C:\test.pdf", "C:\flattened.pdf"
End Sub

Private Sub ImportForm_Click()
    Pdfformocx1.ImportFormData "C:\test.fdf", "fdf"
    Pdfformocx1.ImportFormData "C:\test.xml", "xml"
End Sub

Private Sub Refresh_Click()
    Pdfformocx1.RefreshPDF
End Sub

Screenshot of PDF Form Filler OCX: