Copy link to clipboard
Copied
I want to create an ASP script that reads the value of a PDF form and send it to an email address. I have a VB script to do the job but the syntax are different from the PDF form ones
Copy link to clipboard
Copied
If you are an experienced ASP developer you need to know that PDF forms can submit in multiple formats.
- HTML format should allow similar code to read field values.
- PDF format is the entire filled in PDF, not suitable for getting the fields, but for processing the whole file (eg archive, email it).
- XFDF provides the field values packages in XML; you take the input as a submitted file then parse the info needed with an XML library.
- FDF is an older format with field info.
You then have to know what response to make. If submitted from the free Reader you can’t return HTML. Returning FDF is a useful option; the returned data populates the form field.
If you are not an experienced ASP professional, and if this is internet-facing DO NOT MAKE THIS YOURSELF. It pains me to say this because it’s a good introduction to web development. But your ASP would be under constant automated attack by motivated hackers who know all the kinds of oversights made by new programmers, and who would then take over the server. They might just host porn but more likely they will steal anything else in the server and future customer data, and launch attacks in your inner network. The legal liability and potential reputations damage are unlimited.
Copy link to clipboard
Copied
If you are an experienced ASP developer you need to know that PDF forms can submit in multiple formats.
- HTML format should allow similar code to read field values.
- PDF format is the entire filled in PDF, not suitable for getting the fields, but for processing the whole file (eg archive, email it).
- XFDF provides the field values packages in XML; you take the input as a submitted file then parse the info needed with an XML library.
- FDF is an older format with field info.
You then have to know what response to make. If submitted from the free Reader you can’t return HTML. Returning FDF is a useful option; the returned data populates the form field.
If you are not an experienced ASP professional, and if this is internet-facing DO NOT MAKE THIS YOURSELF. It pains me to say this because it’s a good introduction to web development. But your ASP would be under constant automated attack by motivated hackers who know all the kinds of oversights made by new programmers, and who would then take over the server. They might just host porn but more likely they will steal anything else in the server and future customer data, and launch attacks in your inner network. The legal liability and potential reputations damage are unlimited.

