Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

ASP.NET code to read PDF Form

Avatar

Former Community Member
Hello, I am looking for a sample ASP.NET code to extract values from a PDF Form.



We have created a PDF Form using Acrobat LiveCycle 8.0

And we are trying to post the PDF Form in the website so our users can fill out the form over the Internet.



We been told that on Submit, we can extract values from the PDF Form and transfer values to our SQL database using ASP.NET.



We are using Adobe Acrobat 8.1 and VB 2005.

Thanks.
1 Reply

Avatar

Former Community Member
For a = 0 To Request.Form.Count - 1

If InStr(Request.Form.Keys(a), "Hamta") > 0 Then Hamta = True

If InStr(Request.Form.Keys(a), "Spara") > 0 Then Spara = True

If InStr(Request.Form.Keys(a), "TaBort") > 0 Then TaBort = True



Temp = Request.Form.GetKey(a)

Do While InStr(Temp, ".") > 0

Temp = Mid(Temp, InStr(Temp, ".") + 1)

Loop

Temp = Left(Temp, InStr(Temp, "[") - 1)

If UCase(Temp) = "ARENDENUMMER" Then Ärendenummer = Request.Form(Request.Form.Keys(a))

If UCase(Temp) = "NAMN" Then Namn = Request.Form(Request.Form.Keys(a))

If UCase(Temp) = "TEXT" Then Text = Request.Form(Request.Form.Keys(a))

Next

ulf.a@dtp-tjanst.se