What is the best way to generate pdf files via webservice?

Asked

Viewed 493 times

0

I have a Soap webservice and came across the need to generate pdf documents.
Has anyone ever worked with generation of many documents via webservice and what technologies have they used? Which technologies achieved the best performance, ease of work etc(which were: utilization of a given Framework, creation of scheduled routines on the server, asynchronous method calls etc)?

  • 1

    You have many questions in one. It would be better if you segmented your questions into others, because the way you are would be difficult to answer all.

1 answer

3

I’m on a job of it right now. And, the simplest, to generate PDF from an HTML and worked very well with me, is the Nreco.Pdfgenerator.

Free, fast, and too easy to use.

var htmlContent = String.Format("<body>Hello world: {0}</body>", 
        DateTime.Now);
var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter();
var pdfBytes = htmlToPdf.GeneratePdf(htmlContent);

Or even straight from a URL:

htmlToPdf.GeneratePdfFromFile("http://www.nrecosite.com/", null, "export.pdf");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.