Is there any open source .NET project (or port) similar to the Flying Saucer project which renders HTML to PDF using iText?
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).
For a quick-and-dirty solution you could try using IKVM to compile the Java to .NET.
http://www.ikvm.net/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With