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 105133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:23:28+00:00 2026-05-11T01:23:28+00:00

Any idea how to render a PDF using iTextSharp so that it renders the

  • 0

Any idea how to render a PDF using iTextSharp so that it renders the page using CSS. The css can either be embedded in the HTML or passed in separately, I don’t really care, just want it to work.

Specific code examples would be greatly appreciated.

Also, I would really like to stick with iTextSharp, though if you do have suggestions for something else, it’s got to be free, open source, and have a license that permits using it in commercial software.

  • 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. 2026-05-11T01:23:28+00:00Added an answer on May 11, 2026 at 1:23 am

    It’s not possible right now but nothing stops you from starting open-source project that will do it. I might actually start one, because I need it too!

    Basically you will need parser that will convert html and css markup into iTextSharp classes. So <table> becames iTextSharp.SimpleTable and so on.

    It would be easy to come up with prototype that would be able to work with limited html and css subset.

    Update: Until the time this will be possible, this is how I temporarily resolved it for myself. Only two steps:

    • Tell your users to download open-source app called PDFCreator
    • Make all your html reports printer friendly by providing stylesheets for print.

      If some of your multi-page reports need to have headers on every page, set them up in THEAD html tag.

    Now users will be able to print-friendly and if they choose PDFCreator printer driver, they will even be able to get report in PDF format (there are other pdf printer drivers but this one is free and open-source).

    Also I know HTML is not as flexible as PDF but it might be good enough. I was doing some tests with real users and they actually like it because not only they can now print anything to PDF (even beyond my app), also their workflow is faster because they don’t have to download and wait until their pdf reader opens up. they just print (or export to pdf) what they see on website directly from their webbrowser… kind of makes sense.

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

Sidebar

Ask A Question

Stats

  • Questions 77k
  • Answers 77k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Yes, they can be cached. But I don't know if… May 11, 2026 at 3:33 pm
  • added an answer It is always important to call _freea after every call… May 11, 2026 at 3:33 pm
  • added an answer Please feel free to continue to believe there is some… May 11, 2026 at 3:33 pm

Related Questions

I need to determine the number of pages in a specified PDF file using
I'm working on a source-code visualization project that uses the Processing core library. The
I have a class Person which can have several Homes, each one with one
I'm not sure if this a settings problem or an HTML problem, but on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.