Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET version or port of Flying Saucer

Is there any open source .NET project (or port) similar to the Flying Saucer project which renders HTML to PDF using iText?

like image 294
Tawani Avatar asked May 24 '10 18:05

Tawani


3 Answers

I always recommend wkHTMLtoPDF for web->PDF conversions. It's web kit based though I'm not sure what PDF library it's sitting on.

At any rate, you'll be hard pressed to find something that will render your HTML more accurately (it'll even run script, set innerHtml and so forth).

like image 194
Mark Storer Avatar answered Nov 20 '22 05:11

Mark Storer


For a quick-and-dirty solution you could try using IKVM to compile the Java to .NET.

http://www.ikvm.net/

like image 20
Axl Avatar answered Nov 20 '22 05:11

Axl


Use the Pechkin .NET wrapper for WkHtmlToPdf. The resulting pdf can be outputted as a byte[], filestream or file path.

The NuGet package had a problem so I downloaded it directly from github and it seems to be working now.

like image 1
fireydude Avatar answered Nov 20 '22 05:11

fireydude