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. Convert any file to PDF

Convert any file to PDF

Scheduled Pinned Locked Moved ASP.NET
2 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.
  • K Offline
    K Offline
    Krushna Sahu
    wrote on last edited by
    #1

    Hi, I’ve a requirement to convert any type of file(.txt, .doc, .html etc) to pdf file. I have a web page ConvertToPDF.aspx. It contains a text box and a button control on it. I’ll type the full path of the file name(let it be C:\krushna.txt) in the text box and hit the button. Then it should convert to krushna.pdf and store in My Document folder automatically. I’m using visual studio 2005. I’ve also Adobe PDF Printer installed in my system and set it as default printer. Also, in the PDF printer the default port is set to My Document\*.pdf Can it be possible with iTextSharp or I need to go for some other method ? Please guide me in this with detail code. Thank you.

    --Krushna Chandra Sahu prfkrushna@gmail.com

    D 1 Reply Last reply
    0
    • K Krushna Sahu

      Hi, I’ve a requirement to convert any type of file(.txt, .doc, .html etc) to pdf file. I have a web page ConvertToPDF.aspx. It contains a text box and a button control on it. I’ll type the full path of the file name(let it be C:\krushna.txt) in the text box and hit the button. Then it should convert to krushna.pdf and store in My Document folder automatically. I’m using visual studio 2005. I’ve also Adobe PDF Printer installed in my system and set it as default printer. Also, in the PDF printer the default port is set to My Document\*.pdf Can it be possible with iTextSharp or I need to go for some other method ? Please guide me in this with detail code. Thank you.

      --Krushna Chandra Sahu prfkrushna@gmail.com

      D Offline
      D Offline
      Dev S
      wrote on last edited by
      #2

      yes u can use itextsharp. u can also use crystal reports as there is a option to import the report in pdf format.

      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