c# - Capture filled PDF form data -
I want to capture PDF form data filled with public face website and would like to save it to the database on the server. Is this possible? Please tell me
Yes, this is possible. You need a submit button on the form, in the properties of the submit button, select the FDF as the data type. Every field from the PDF document will be a name. Textbox1, Textbox2, etc. and you will get name-value pairs.
I have received the full PDF document in my controller (ASP.NET MVC application), as follows:
string fileename = path.Combine (Server.MapPath (RootPath), name); (By using filestream fs = new filestream (filename, filemod.createNue) {byte] bytes = new byte [8192]; int bytes read; while ((bytesRead = Request.InputStream.Read (bytes, 0, bytes. })> 0) {fs.Write (byte, 0, bytes read);}} In this case the file name is a temporary filename that is located in the temporary area Where I used to write. Another solution would be to write the file in memorystream and Then it will be used in the email.
Comments
Post a Comment