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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How can i convert all types of files to pdf format without using any software?

How can i convert all types of files to pdf format without using any software?

Scheduled Pinned Locked Moved C#
questionhelp
15 Posts 5 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.
  • S sush8

    Hi,Thanx for you reply..I just want to do it in a very simple manner..Initially i will upload files to database and to a folder in my application.I am just storing the file name with some categories to database.While retrieving i will match the file name from database to that folder and retrieve them.I used iframe to display any type of file. But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..

    S Offline
    S Offline
    Sauro Viti
    wrote on last edited by
    #6

    Pheraps this could help you, I'm not sure: PDF Library for creating PDF with tables and text, in C#[^] CodeProject Articles about PDF handling[^]

    1 Reply Last reply
    0
    • S sush8

      Hi,Thanx for you reply..I just want to do it in a very simple manner..Initially i will upload files to database and to a folder in my application.I am just storing the file name with some categories to database.While retrieving i will match the file name from database to that folder and retrieve them.I used iframe to display any type of file. But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #7

      sunithaganugu wrote:

      But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..

      How "new" are you? If we're talking less than a month's programming experience, it might be a good idea to start with something more straight-forward.

      I are Troll :suss:

      S 1 Reply Last reply
      0
      • L Lost User

        sunithaganugu wrote:

        But now i am trying to convert all files to pdf and store in database.I want to do it in a very simple way.I am new to .net programming.So,i am not much familiar with libraries,tools etc etc..

        How "new" are you? If we're talking less than a month's programming experience, it might be a good idea to start with something more straight-forward.

        I are Troll :suss:

        S Offline
        S Offline
        sush8
        wrote on last edited by
        #8

        I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..

        D L 2 Replies Last reply
        0
        • S sush8

          I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #9

          You cannot do this without third party libraries. Since your code will never know the format of every type of file, and therefore cannot understand how to print it to a PDF file itself, you have to rely on the application for every file type. This is also impossible because you cannot have the application for every file type installed nor does every application expose a COM interface for your application to use it. You're going to have to limit your scope to a known subset of file types in order to do this to any degree of success.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          1 Reply Last reply
          0
          • S sush8

            I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #10

            sunithaganugu wrote:

            I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..

            So, the conversion is working, albeit on a static page? What kind of files are you going to export?

            I are Troll :suss:

            S 1 Reply Last reply
            0
            • L Lost User

              sunithaganugu wrote:

              I have only one month experience in .net.My task is to convert files.I don't have any idea.I used sautin soft tool to convert files.I got code to convert only that particular aspx design format to pdf page.But i donno how can i convert pages dynamically..

              So, the conversion is working, albeit on a static page? What kind of files are you going to export?

              I are Troll :suss:

              S Offline
              S Offline
              sush8
              wrote on last edited by
              #11

              Actually my concept is E-Books.So, if i upload any type of file book it should convert to pdf and then store into database.I want to convert msword/txt/html to pdf..

              L 1 Reply Last reply
              0
              • S sush8

                Actually my concept is E-Books.So, if i upload any type of file book it should convert to pdf and then store into database.I want to convert msword/txt/html to pdf..

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #12

                sunithaganugu wrote:

                I want to convert msword/txt/html to pdf..

                That's not "any file". The good news is that these formats can be exported to PDF, using a third-party library - PDF isn't supported by the native classes. I'd be using SharpPDF, but that's based on the experience of others. I assume that you already have the code to upload a file, storing data etc.?

                I are Troll :suss:

                S 1 Reply Last reply
                0
                • L Lost User

                  sunithaganugu wrote:

                  I want to convert msword/txt/html to pdf..

                  That's not "any file". The good news is that these formats can be exported to PDF, using a third-party library - PDF isn't supported by the native classes. I'd be using SharpPDF, but that's based on the experience of others. I assume that you already have the code to upload a file, storing data etc.?

                  I are Troll :suss:

                  S Offline
                  S Offline
                  sush8
                  wrote on last edited by
                  #13

                  Ya,I have code for uploading files to database.I am just storing the file name not the total file to database.I am storing files in a folder on my server.Do you have any idea how to use iTextSharp library or some other third party tools?

                  L 1 Reply Last reply
                  0
                  • S sush8

                    Ya,I have code for uploading files to database.I am just storing the file name not the total file to database.I am storing files in a folder on my server.Do you have any idea how to use iTextSharp library or some other third party tools?

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #14

                    sunithaganugu wrote:

                    Do you have any idea how to use iTextSharp library or some other third party tools?

                    No, and that's where Google comes in. This[^] would probably be the base, I'd try to build a prototype with that code as an example.

                    I are Troll :suss:

                    S 1 Reply Last reply
                    0
                    • L Lost User

                      sunithaganugu wrote:

                      Do you have any idea how to use iTextSharp library or some other third party tools?

                      No, and that's where Google comes in. This[^] would probably be the base, I'd try to build a prototype with that code as an example.

                      I are Troll :suss:

                      S Offline
                      S Offline
                      sush8
                      wrote on last edited by
                      #15

                      Actually we can use google docs embedded code for doing this.Its very simple.But i want to do it in a programmatic way.

                      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