Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to convert HTML into PDF

How to convert HTML into PDF

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netvisual-studiohelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Affan Toor
    wrote on last edited by
    #1

    Hi, I want to convert a div/table on my asp.net page into PDF using c#. I found code which converts html to PDF but it ignores the images and colors and just converts text. Then i tried to convert HTML into image, as i know there is way to add image into PDF, but could not find any way to do that. Is it possible in any way? I am using Visual Studio 2010. any kind of help is appreciated. Thanks,

    Regards, Affan Ahmad Toor

    K 1 Reply Last reply
    0
    • A Affan Toor

      Hi, I want to convert a div/table on my asp.net page into PDF using c#. I found code which converts html to PDF but it ignores the images and colors and just converts text. Then i tried to convert HTML into image, as i know there is way to add image into PDF, but could not find any way to do that. Is it possible in any way? I am using Visual Studio 2010. any kind of help is appreciated. Thanks,

      Regards, Affan Ahmad Toor

      K Offline
      K Offline
      Karthik Harve
      wrote on last edited by
      #2

      Hi, you can make use of ITextSharp library. refer below article. Export ASP.Net Web Page with images to PDF using ITextsharp[^] Creating PDF documents with iTextSharp[^]

      Vande Matharam - Jai Hind

      A 1 Reply Last reply
      0
      • K Karthik Harve

        Hi, you can make use of ITextSharp library. refer below article. Export ASP.Net Web Page with images to PDF using ITextsharp[^] Creating PDF documents with iTextSharp[^]

        Vande Matharam - Jai Hind

        A Offline
        A Offline
        Affan Toor
        wrote on last edited by
        #3

        thanks for the reply. i will try both links and see what happens.

        Regards, Affan Ahmad Toor

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups