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. General Programming
  3. C / C++ / MFC
  4. Convert doc/txt file to PDF using C++.

Convert doc/txt file to PDF using C++.

Scheduled Pinned Locked Moved C / C++ / MFC
c++
5 Posts 4 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 Offline
    S Offline
    Subrat 4708266
    wrote on last edited by
    #1

    I want to convert doc/txt file to PDF using C++ win32(Don't want any third party Library) console app. Final o/p exe should be used as follows. ConvertDocToPdf.exe source.doc tar.pdf Thanks & Regards,

    B C 2 Replies Last reply
    0
    • S Subrat 4708266

      I want to convert doc/txt file to PDF using C++ win32(Don't want any third party Library) console app. Final o/p exe should be used as follows. ConvertDocToPdf.exe source.doc tar.pdf Thanks & Regards,

      B Offline
      B Offline
      bob16972
      wrote on last edited by
      #2

      Member 4708266 wrote:

      Don't want any third party Library

      Sounds like you should build your own. It's actually pretty easy once you get your first postscript file put together programmatically and start to understand the Adobe PDF Reference. It takes about 6 months to build a full GDI/GDI+ compatible interface but if you only want text then you can shave off a couple of months since you won't be interested in scraping bitmap information into image resources and the like. PDF Reference 1.7, Sixth Edition[^] (I recommend downloading this reference if your going to view it as it tends to download resources as they are needed if you view it online in the IE window) 1000+ pages Note: Everything you need is in this reference. However, it is very mathematical and not user-friendly at first glance but if you stay your course, it all comes together nicely in a few weeks and you make the most progress (coding-wise) after that. There are not any real support groups unfortunately. Most forums are maintained by people who have built their own products and are trying to get you to give up building your own and use theirs (for a price of course).

      S 1 Reply Last reply
      0
      • S Subrat 4708266

        I want to convert doc/txt file to PDF using C++ win32(Don't want any third party Library) console app. Final o/p exe should be used as follows. ConvertDocToPdf.exe source.doc tar.pdf Thanks & Regards,

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        Member 4708266 wrote:

        Don't want any third party Library

        Why the reason for this ? You really want to rewrite everything yourself :omg: ?

        Cédric Moonen Software developer
        Charting control [v1.5] OpenGL game tutorial in C++

        1 Reply Last reply
        0
        • B bob16972

          Member 4708266 wrote:

          Don't want any third party Library

          Sounds like you should build your own. It's actually pretty easy once you get your first postscript file put together programmatically and start to understand the Adobe PDF Reference. It takes about 6 months to build a full GDI/GDI+ compatible interface but if you only want text then you can shave off a couple of months since you won't be interested in scraping bitmap information into image resources and the like. PDF Reference 1.7, Sixth Edition[^] (I recommend downloading this reference if your going to view it as it tends to download resources as they are needed if you view it online in the IE window) 1000+ pages Note: Everything you need is in this reference. However, it is very mathematical and not user-friendly at first glance but if you stay your course, it all comes together nicely in a few weeks and you make the most progress (coding-wise) after that. There are not any real support groups unfortunately. Most forums are maintained by people who have built their own products and are trying to get you to give up building your own and use theirs (for a price of course).

          S Offline
          S Offline
          Saurabh Garg
          wrote on last edited by
          #4

          You forgot to point him to the DOC reference, which is equally easy ;P :-D -Saurabh

          B 1 Reply Last reply
          0
          • S Saurabh Garg

            You forgot to point him to the DOC reference, which is equally easy ;P :-D -Saurabh

            B Offline
            B Offline
            bob16972
            wrote on last edited by
            #5

            ??? :confused:

            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