Skip to main content
January 11, 2017
Question

How to send the form contents to my server

  • January 11, 2017
  • 2 replies
  • 786 views

I have a PDF form with some basic fields.I want to send the form contents to my server on click on a button. I am using ASP.NET for my server side technology. Can anybody share how can we achieve it.

This topic has been closed for replies.

2 replies

NKOWA555
Inspiring
January 11, 2017

?: How to send the form contents to my server.

A: You should create a ASP.net script and set the PDFs submit button to point to the URL of the script

- Parse the FDF, XDP, XML, XFDF or HTML data using FDFToolkit.net and/or iTextSharp

- Insert field values into new row and save to database

- Merge the data with a blank form and save to folder on server

- Email the merged document to your inbox

- Respond back with a FDF status message or redirect to a success/fail URL

Note: In order to submit PDF documents, each end user will need a compatible PDF Reader that has submission capabilities, such as Adobe Reader for desktop.

Check out the following sites:

www.fdftoolkit.net/examples/

www.google.com/search?q=itextsharp

January 12, 2017

Thanks NKOWA555 for looking into my problem. My requirements are to submit the FDF/HTML from to a web form http://localhost:49168/WebForm1.aspx . I am using Aspose.Pdf library in my server side code.

Can you please help me how to read the form fields values in my server side code.

Legend
January 11, 2017

On the button create a Submit action.

Give the full http/https URL of a server script

If you use HTML format for submit you will be able to write the formas if dealing with an HTML POST.

Don't expect it to work with all browsers or platforms; each one has its own idea of what do do with PDF forms (quite often, nothing).

Consider an HTML form, it's MUCH more portable!