Server side printing in C # / ASP.NET

A virtual PDF printer is installed on the server on which my application is running (little is known about this except Adobe), and my application needs to use this "printer" to create a PDF file from HTML pages (mainly GridView), and then redirect the user to the URL of where the PDF file is stored.

I looked at the PrintDocument object in System.Drawing.Printing, however I read that you cannot just submit this HTML page. What are my choices? The easiest option would be to “print” the given HTML page (choosing what and what not to print with CSS), but from what I read it is quite difficult, so I’m thinking of somehow building any a PrintDocument object is required programmatically, if that makes sense.

Any ideas on how I should do this?

+3
source share
1 answer

There are several free / cheap libs for creating PDFs on the fly. I used to use itextsharp and it worked very well. It will take a little time to speed up how this works, but I would suggest checking it out.

, Neevia DocConverter, , , pdf, jpg .., , , url ​​ , - URL- pdf. , , , - .

+1

All Articles