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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:57:47+00:00 2026-05-16T23:57:47+00:00

i m using asp.net mvc2 for my application. i have a view that accepts

  • 0

i m using asp.net mvc2 for my application. i have a view that accepts a model and renders its data in some format. i want this page to be converted into pdf file so it can be sent via attachment or created and downloaded on the fly. i have some success creating pdf with itextsharp library but they say it has very basic support for html and css. if anyone has rendered complex html pages to pdf using itextsharp or any other library plz help me in solving this problem. any comments are highly appreciated

thanks

  • 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-16T23:57:48+00:00Added an answer on May 16, 2026 at 11:57 pm

    I think this related question will help to a degree. Just note that HTML displays and PDF documents serve different purposes as described here. The basic thought is that the latter “is designed for print output”, and the other “is designed for video display”.

    My suggestion is that in most cases when one prints from the web, there is an option to create a separate stylesheet for printing using this declaration. The idea is to dumb down the styling and make it more print friendly (=less complex).

    The following article from A List Apart provides some further insight into this option.

    <link rel="stylesheet" type="text/css" media="print" href="print.css" /> 
    

    The other free PDF library to look at is PDFSharp. However, they do not support conversion from HTML to PDF.

    Other related SO questions

    • List of HTML to PDF converters
    • Render PDF in iTextSharp from HTML with CSS
    • Open Source HTML to PDF Renderer with Full CSS Support
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I debug code in the View in asp.net mvc2 application? Edit after
I am trying out some globalization in an asp.net mvc2 application but can't get
Background : I currently have a Web Forms, ASP.NET 3.5/C# application which I'm interested
I have a ASP.NET MVC 2 application with WCF service defined in it (.svc
I have an ASP.NET MVC 2 application with a custom StructureMap controller factory to
Following on from this question: ASP.NET MVC Routing with Default Controller I have a
I am having some issues with deploying my MVC 2 application on a IIS
I have a Windows Form project that I would like to migrate toward a
My environment consists of Visual Studio 2010 and Windows 7 a few months ago

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.