Sarathy
Sarathy

Reputation: 452

ASP.Net to PDF conversion

I am using Itextsharp version 5.0.6 to convert Asp.net page into PDF. I am not able to create the PDF from the HMTML string with the css. If any one knows how to do with css please help me.

If any one has experience in iTextsharp kindly advice me and share your experience.

Thanks, Parthasarathy M

Upvotes: 0

Views: 430

Answers (1)

Mark Storer
Mark Storer

Reputation: 15870

Having worked with iText's old HTML->PDF code, I can suggest that you:

  1. Accept more answers to your questions. :P
  2. Don't do that. iText's HTML->PDF converter is acceptable, but its CSS support is still spotty. The new XMLWorker is an improvement, but there's still Much Better Options available to you.

I've been a committer on iText for a couple years now. HTML->PDF conversion is not its strength. Getting better, still a long way to go.

In particular, I'm quite happy with the results from WKHTML2PDF. I was able to render an HTML page with a GOOGLE MAP to PDF. You won't find that anywhere else (other than a browser's theoretical "current page to PDF" function, which I haven't heard of as yet).

Upvotes: 2

Related Questions