views:

336

answers:

1

From their site (Free Project On Google Code): http://code.google.com/p/dompdf/

dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly) CSS2.1 compliant HTML layout and rendering engine written in PHP

I need to have the same functionality in an ASP.NET website. Is there any good free alternative that can work with ASP.NET. I tried iTextSharp in previous project but its HTML support is horrible.

I had to write special HTML for it. This cannot be the case for the current website because users are uploading HTML files on their own.

I also tried Google Documents .NET client library, but it's very unstable. Many times I get "BAD Request" then repeat the same request and it works.

-

Do you know a way to get HTML conversion to PDF through .NET with free tool? Or even a way to interface with this PHP library via .NET (given I host on shared hosting that enables full trust security, but no ability to install anything or such, although I may move to virtual server if it's worth).

+1  A: 

Probably you've already over this issue or just forgot it altogether :D

Anyway, you might find this post handy if you still want to try it out: http://fci-h.blogspot.com/2008/03/save-as-pdf-using-c_06.html

It's not exactly HTML to PDF, but I guess HTML to doc is a lesser of a problem :)

Shady M. Najib
Thank you.I had a VPS with inability to get Office license.I solved it by calling Google Docs. I created the document there, then downloaded it as PDF, and deleted it.However, Google Docs API is not reliable at all. Gives many random errors that you just retry the call and it works.
Mohamed Meligy