The values of Acro Form fields can be read from an existing PDF document using the Form property of the Document class.
This example shows how to read the value of Acro Form fields from an existing PDF document:
[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"-->
<%
' Create a PdfDocument object
Dim MyPdfDocument
Dim MgOptions
Set MgOptions = Server.CreateObject( "DynamicPDF.MergeOptions" )
MgOptions.MergeFormFields = True
Set MyPdfDocument = Server.CreateObject( "DynamicPDF.Document" )
MyPdfDocument.LoadPdf Server.MapPath( "PDFs/MergedAndFilled.pdf" ), , , MgOptions
Dim MyFieldValue
MyFieldValue = MyPdfDocument.Form.Fields.Item( 0 ).Value
Response.Write( MyFieldValue )
' You can display the values set using Response.write in ASP or MsgBox in VBScript
%>
| See Also |

