using acrobat X Pro, how do I parse data from a fillable pdf programmatically using .net

I'm using acrobat X Pro, how do I parse data from a fillable pdf programmatically using .net
I have attached my pdf. with the fillable data ......
This file only has 3 or 4  fillable fields filled in but should be enough to show what I mean....
I would like to receive this file via email, save it to a server, parse the information, rename the file based on whether there is a PO number, this becomes the filename or not - then use the inputted date or Now(), then email the complete form (images included) to another email while using the parsed data to fill my SQL Server tables.
So my script would look like this phonetically:
If PO > "" then filename = PO data & .pdf
elseif date > "" then filename= date & .pdf
else filename = now() & .pdf
end if
then
send email of filename to joe shmoe
then
parse name, dept, manf, style, size etc to sql server table

Am I crazy, or should this be fairly easy as all data is stored in datafields???

Please help... Thank you.
Max point to everyone....
PreveaOrderForm.pdf
baytowelAsked:
Who is Participating?
 
NKOWACommented:
You need to reference the libraries in your project, create a ASPX file, make a public sub routine to put the code, and call the routine on page load. Point the submit button URL action to the script.
0
 
Kalpesh ChhatralaSoftware ConsultantCommented:
0
 
baytowelAuthor Commented:
Haven't had a chance to try yet, hopefully today.... thank you
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
NKOWACommented:
Check out:
http://www.fdftoolkit.net

Online examples:
http://www.fdftoolkit.net/examples/

Open-source edition:
http://fdftoolkit.codeplex.com/

Also check out:
http://www.pdfemail.net/

Note: I haven't inspected your PDF, but if its an Acrobat Form, or a Static XFA LiveCycle PDF form, then the form can be parsed. If it's a XFA LiveCycle form saved as a "Dynamic" PDF, then you have very few options.
0
 
baytowelAuthor Commented:
It is an XFA Life Cycle form saved as a "Reader Extended PDF w/ Additional Feaures"... Does that mean I'm stuck with very few options??
0
 
NKOWACommented:
When in LiveCycle, click File=>Save As=>?

Does it say "Dynamic PDF", or "Static PDF" for the File Type?
0
 
NKOWACommented:
You can still submit the whole PDF format with Dynamic XFA form, but you won't be able to parse it using any library.

If you submit XDP data with Dynamic XFA form, you can parse it, but you won't get the whole PDF in your email, just the XDP data.

If you submit whole PDF format or XDP data with the "Static" XFA, and you can parse XDP and parse "Static" XFA, and get the whole PDF in your inbox by merging.
0
 
NKOWACommented:
Dynamic XFA are used for dynamic field and row generation in expanding tables.

If you don't need this feature, I suggest saving as (Save As) "Static PDF".
0
 
NKOWACommented:
If you need a custom script, or a single PDFEmail.net script, contact me:

http://www.nk-inc.com/support/sales/
0
 
baytowelAuthor Commented:
If I save as a static pdf will the customer filling out the form be able to save it?
0
 
baytowelAuthor Commented:
I am saving as static in adobe livecycle designer, then as Reader Extended PDF w/ Additional Feaures in adobe acrobat x pro
0
 
NKOWACommented:
You can enable usage rights the PDF type regardless if it's static XFA, dynamic XFA or an Acrobat form.

The latest version of Adobe Reader doesn't need Usage Rights enabled; because, it allows the client to save with data, and submit whole PDF format. But for older versions of Adobe Reader, you can enable usage rights, and the client will be able to save it or submit whole PDF format.
0
 
NKOWACommented:
This code will take a PDF submission and parse it:

Download the FDFToolkit.net library:
http://fdftoolkit.codeplex.com

Note: I updated the open-source project on 10/07/2013.

Dim cFDFApp as new FDFApp.FDFApp_Class
Dim cFDFDoc as new FDFApp.FDFDoc_Class

Dim pdfBytes(Request.InputStream.Length) as Byte
If Request.InputStream.Length>0 Then
Request.InputStream.Read(pdfbytes,0,request.inputStream.Length)
else
return
End if

' Load the submission stream
cFDFDoc = cFDFApp.PDFOpenFromBuf(pdfBytes)

Dim filename as string = ""
If Not String.IsNullOrEmpty(cFDFDoc.XDPGetValue("PO") & "") then 
'
 Parse the PDF form field called "PO"
filename = cFDFDoc.XDPGetValue("PO") & ".pdf"

elseif Not String.IsNullOrEmpty(cFDFDoc.XDPGetValue("date) & "") then 

filename= cFDFDoc.XDPGetValue("date") & ".pdf"
else 

filename = DateTime.now().replace(":","-").replace(" ","-") & ".pdf"

end if

' Send the PDF (pdfBytes)

Open in new window

0
 
baytowelAuthor Commented:
This looks like my solution....but how do I make this work:
Dim cFDFApp as new FDFApp.FDFApp_Class
Dim cFDFDoc as new FDFApp.FDFDoc_Class

I downloaded the following library:
http://fdftoolkit.codeplex.com/

where do I need to put the code?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.