Skip to main content
Participant
February 18, 2023
Question

Need help transferring data from aspx form to pdf form

  • February 18, 2023
  • 1 reply
  • 2188 views

I have an information form in my software application (de_school.aspx) that contains a link to a pdf. When the user clicks on the pdf link I want the customer's name from de_school.aspx to appear in the School field on my pdf form.  

 

de_school.aspx is the name of the form i want to take the data from

txtSchoolName is the field on the de_school.aspx form I want to get

School is the field on the PDF I am trying to populate

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
February 19, 2023

So right off, this is not an Acobat issue. Since you have a server based web app, transfering data from a PDF (on a server) and into the aspx web app, a PDF library, or some tool that can read PDF form data is required. Acrobat isn't part of this process.

Ideally you'd want an easy connection to your mananaged environment, but AFAIK, there are no built-in .NET PDF libraries or tools.  There are however several 3rd party .NET PDF tools. Do a google search for "PDF .NET Library" or something similar. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
February 19, 2023

I am trying to do the opposite.  Transfer the data from the aspx page to the pdf. Does your answer still apply?

Thom Parker
Community Expert
Community Expert
February 19, 2023

Yes and No. Putting data into the PDF has more options.  However, the very best method is to use a server side tool to populate the PDF before serving it up to the user. This provides the best ease use and robustness for the user. 

 

The other options for doing this rely on the user being setup to to directly load the PDF into Acrobat/Reader when the link is pressed. And this won't work on mobile. Which basically means this set of techniques are unusable unless you have a tighly controlled environment. 

For example one technique is to modify(redirect) the link URL at the time it is pressed to include an URL to an FDF file.

Like this:

http://example.org/doc.pdf#fdf=http://example.org/doc.fdf

 

Your code will need to create the FDF on the fly, with the data you want populated into the PDF. 

   

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often