<!-- Copyright (c) 2019 ActivePDF, Inc. --> <!-- ActivePDF Toolkit 2018 --> <!-- Example generated 12/06/19 --> <% Dim strPath, intOpenInputFile, strName, strFormat, _ numMaxLength strPath = Server.MapPath(".") & "\" ' Instantiate Object Set oTK = Server.CreateObject("APToolkit.Object") ' Open the template PDF intOpenInputFile = oTK.OpenInputFile(strPath & "form.pdf") If intOpenInputFile <> 0 Then ErrorHandler "OpenInputFile", intOpenInputFile End If ' Specify a field to return as an object Set oFI = oTK.FieldInfo("name", 1) ' Get the name of the field strName = oFI.Name Response.Write(strName) ' Get the format string of the field strFormat = oFI.FormatString Response.Write(strFormat) ' Get the max length of the field numMaxLength = oFI.MaxLength Response.Write(numMaxLength) ' Release Object Set oFI = Nothing ' Finish by closing the input file oTK.CloseInputFile ' Release Object Set oTK = Nothing ' Process Complete Response.Write "Done!" ' Error Handling Sub ErrorHandler(method, outputCode) Response.Write("Error in " & method & ": " & outputCode) End Sub %>