Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6975205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:20:18+00:00 2026-05-27T17:20:18+00:00

I want to convert an HTML file to PDF using iTextSharp . I used

  • 0

I want to convert an HTML file to PDF using iTextSharp.

I used this code.

I then did the following to convert it to pdf:

HTMLWorker htmlWorker = new HTMLWorker(document);
htmlWorker.Parse(new StringReader(results));
document.Close();

However, none of the CSS is parsed. Any alternatives?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:20:18+00:00Added an answer on May 27, 2026 at 5:20 pm

    18 months ago, we exhaustibly tested most of the html-to-pdf converters available (paid and free). In the end, the hands-down best html-to-pdf converter was a free, open-source program called wkhtmltopdf.

    It is command-line-driven, uses the webkit rendering engine, and accurately (and more importantly, consistently) turns web pages into beautiful looking pdf’s. It also has a variety of useful command-line switches, gives you complete header/footer control, optionally creates table-of-contents pages, and runs very, very fast. AND — because it’s command line driven, it has the added bonus of easily being used for batch generation. You simply cannot go wrong.

    As a sidenote, this program also has a sister program (bundled in download) called wkhtmltoimage, which works exactly the same way, but converts webpages to a variety of image formats. This has also been highly useful and we use this functionality for taking snapshots of our web-based tools when building proposals for jobs.

    I’m know that I sound like a total fanboy, but I’m not. I’m simply someone that got so sick-and-tired of all the bullsh*t converters out there that I was doubly blown away when we found wkhtmltopdf. I simply cannot recommend this little program enough.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to convert this url: module-apple-get.html?term=st to file.php?module=apple&func=get&term=st I 've wrote this code
I have an HTML file and i want to convert to XML only using
I want to convert local html file on iPhone to PDF document. I have
How to convert to PDF from my JSP/HTML file?. I want to convert a
I am new to Android. I want to convert a XML file to HTML
I'm using http://tidy.sourceforge.net/ to convert HTML to XHTML and I want to transform this
i want to convert an avi file to 3gp using java program. For this
I want to convert .docx file to .html. I work in C#. My code
I have this HTML structure and want to convert it to an accordion. <div
Possible Duplicate: Convert HTML to PDF in .NET I am using VSTS 2008 +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.