Question:I'm trying to use Visual Basic to processes some PDF forms that were filled out and signed using Adobe Acrobat Reader.I've tried some applications but some didn't dump any of the filled out data or maxed a core for 2 minutes when I tried to load the file with PdfFileReader(f) and I just gave up and killed it.I can keep hunting for libraries and trying them but I'm hoping someone already has an efficient solution. I hoping, I can find some solution on VeryPDF?
Answer: When you need to extract PDF data from a filled PDF file, maybe you can have a free trial of this software VeryPDF PDF Form Filler SDK, by which you can fill interactive PDF forms items such as text, check box, radio button, combo box, list box fields, etc and the extract those filled information to FDF file, XML file and XFDF file. By the SDK version, you can use it together with programming languages are supported：C#, VB .NET, MS Visual Basic, Borland Delphi, VBA (MS Office products such as Access) and C++ via COM, C and C++ via native C. Please check more information of this software on homepage, in the following part, I will show you how to use it.
- On the try and buy website, there are two versions:PDF Form Filler SDK and PDF Form Filler OCX which is is an ActiveX control that can be used by applications running on Microsoft's Windows systems, providing such functions as handling scroll bar movement and window resizing. Please download the proper version according to your needs.
- When downloading finishes, it is a zip file. Please extract it to some folder then you can call it normally.
Step 2. Extract PDF data from filled PDF form.
- When you need to extract PDF data from filled PDF form, you may use the following parameters:
- Here is some examples for your reference:
Extract FDF data from a filled PDF file.
TRUE is success, FALSE is fail.
lpInPDF: input PDF file
lpOutFDF: output FDF file
BOOL WINAPI PDFForm_FlattenPDF(LPCTSTR lpInPDF, LPCTSTR lpOutPDF)
Private Function PDFFormFilling2()
Dim bRet As Long
Dim szInPDFFile As String
Dim szInFDFFile As String
Dim szOutPDFFile As String
Dim szOutFDFFile As String
Dim szFlattenPDFFile As String
Dim szEncryptPDFFile As String
szInPDFFile = App.Path + "\example-fw9.pdf"
szInFDFFile = App.Path + "\example-fw9.fdf"
szOutPDFFile = App.Path + "\out-filled.pdf"
szOutFDFFile = App.Path + "\out.fdf"
szFlattenPDFFile = App.Path + "\out-flatten.pdf"
szEncryptPDFFile = App.Path + "\out-encrypt.pdf"
bRet = PDFForm_MergeFDFIntoPDF(szInPDFFile, szInFDFFile, szOutPDFFile)
bRet = PDFForm_ExtractFDFFromPDF(szOutPDFFile, szOutFDFFile)
bRet = PDFForm_FlattenPDF(szOutPDFFile, szFlattenPDFFile)
bRet = PDFForm_EncryptPDF(szOutPDFFile, "123", "456", "Printing", 128, szEncryptPDFFile)
Private Sub PDFForm_Click()
By this SDK application, you can extract PDF data easily. During the using, if you have any question, please contact us as soon as possible.