From HTML form to PDF

Is there an easy way to have an HTML form on a web page that, when the user submits, puts the data in a PDF file and sends it to the recipient?

The webpage runs on .net.

thanks

+8
html pdf forms
source share
5 answers

Umbraco has a nice PDF generator package called "XSL to PDF."

This allows you to create a PDF file from Umbraco by simply defining a PDF template.

Using this, you can achieve what you are looking for.

+2
source share

If you have C #, use one of these libraries: http://csharp-source.net/open-source/pdf-libraries

(I do not use dot net, so I can not recommend, sorry)

+1
source share

I use PDFsharp a lot. Does it work!

+1
source share

Have you tried "PDF Vision.NET" ? This is a commercial library, but the payment costs justify themselves :) Only $ 150. I think you should try.

Use this code to convert HTML to PDF in Asp.NET/C#:

SautinSoft.PdfVision obj = new SautinSoft.PdfVision(); obj.PageStyle.PageSize.A4(); byte [] pdf = obj.ConvertHtmlFileToPDFStream(@"http://www.somesite.com"); if (pdf!= null) { Response.Buffer = true; Response.Clear(); Response.ContentType = "application/PDF"; Response.AddHeader("Content-Disposition:", "attachment; filename=Result.pdf"); Response.BinaryWrite(pdf); Response.Flush(); Response.End(); 
+1
source share

Disclaimer: I work for this company.

I can also mention another great Sautinsoft product. I think you should check both of them, and then choose the best! The library does its job pretty well and does not require any additional components.

PDF Metamorphosis.Net

This component

HTML to PDF in C #:

 SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis(); p.PageStyle.PageSize.A4(); p.HtmlToPdfConvertFile(@"c:\table.html", @"c:\Result.pdf"); 
0
source share

All Articles