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. The Lounge
  3. How to read PDF documents

How to read PDF documents

Scheduled Pinned Locked Moved The Lounge
c++tutorialquestion
37 Posts 20 Posters 7 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.
  • G Gene OK

    VB? I thought it was written in Perl! Dang it. Out of touch with reality again... :((

    CodeWiz51 -- Life is not a spectator sport. I came to play. Code's Musings | Code's Articles

    J Offline
    J Offline
    Jim Crafton
    wrote on last edited by
    #13

    Nah, Perl is used to for Photoshop and Illustrator.

    ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog

    1 Reply Last reply
    0
    • C Christian Graus

      Assuming for a moment that you are not joking... Everyone else on this thread, is, because a - it's plain that Acrobat is written in C++, or perhaps C b - it's plain that you ignored the request not to post programming questions in the lounge, and c - it's plain that if you're not kidding, you probably need to do some more learning/reading before you worry about writing Win32 apps that are able to deal with the PDF file format.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      J Offline
      J Offline
      Jim Crafton
      wrote on last edited by
      #14

      Actually you left off d) and e), but it's plain that they wouldn't be printable in the Lounge, so maybe it's better that way... :)

      ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog

      E 1 Reply Last reply
      0
      • C Christian Graus

        I want to cry.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #15

        Laughing maybe an alternative. :-D

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • V vinaymarje

          I would like to write a win32 application in C++ to read a PDF document. Is this possible?

          E Offline
          E Offline
          El Corazon
          wrote on last edited by
          #16

          vinaymarje wrote:

          Is this possible?

          yes.

          _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

          1 Reply Last reply
          0
          • J Jim Crafton

            Actually you left off d) and e), but it's plain that they wouldn't be printable in the Lounge, so maybe it's better that way... :)

            ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog

            E Offline
            E Offline
            El Corazon
            wrote on last edited by
            #17

            d) my kid sister, if I had one, would be bored by the true answer, therefore it cannot be printed in the lounge. Kid sisters rarely go to the C++ forum, making the C++ forum a good place to ask boring C++ questions.... e) If any of us answer a C++ question in the lounge, Trollslayer would test out a double bladed axe on us.... If she weren't so nice about it, I would think that would qualify her as an honorary kid-sister from my family. ;)

            _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

            L 1 Reply Last reply
            0
            • C Christian Graus

              I want to cry.

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              M Offline
              M Offline
              MidwestLimey
              wrote on last edited by
              #18

              Look on the bright side, a pdf reader is unlikely to be related to a nuclear power plant control system ... it could be sooo much worse!


              I'm largely language agnostic


              After a while they all bug me :doh:


              E M 2 Replies Last reply
              0
              • M MidwestLimey

                Look on the bright side, a pdf reader is unlikely to be related to a nuclear power plant control system ... it could be sooo much worse!


                I'm largely language agnostic


                After a while they all bug me :doh:


                E Offline
                E Offline
                El Corazon
                wrote on last edited by
                #19

                MidwestLimey wrote:

                it could be sooo much worse!

                in my business that brings up some nightmare thoughts....

                _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb) John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

                1 Reply Last reply
                0
                • S Shog9 0

                  As Mike said, it's completely impossible. Adobe wrote Acrobat in VB, and designed the format such that it cannot be read from any other language.

                  Citizen 20.1.01

                  'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

                  G Offline
                  G Offline
                  Giorgi Dalakishvili
                  wrote on last edited by
                  #20

                  How do I design my own format so that it can't be read from any other language? :confused:

                  Giorgi Dalakishvili #region signature my articles #endregion

                  1 Reply Last reply
                  0
                  • V vinaymarje

                    I would like to write a win32 application in C++ to read a PDF document. Is this possible?

                    J Offline
                    J Offline
                    Joan M
                    wrote on last edited by
                    #21

                    vinaymarje wrote:

                    I would like to write a win32 application in C++ to read a PDF document.

                    OK

                    vinaymarje wrote:

                    Is this possible?

                    Yes, if you say so, it is possible that you want to write an app that will read PDF files... :rolleyes:

                    [www.tamelectromecanica.com][www.tam.cat]

                    https://www.robotecnik.com freelance robots, PLC and CNC programmer.

                    1 Reply Last reply
                    0
                    • V vinaymarje

                      Thanks. I should have realized this after I couldn't find any article on CP. CP is the best programming resource I have used.

                      M Offline
                      M Offline
                      Michael Schubert
                      wrote on last edited by
                      #22

                      Don't listen to these guys, they are all making fun of you. Acrobat Reader is actually written with Microsoft Macro Assembler, that's why it's so fast and has such a small footprint, especially the latest version (8). So, to ensure maximum compatibilty, get yourself a copy of MASM 6.15 (it's free!!) and start programming!

                      1 Reply Last reply
                      0
                      • V vinaymarje

                        I would like to write a win32 application in C++ to read a PDF document. Is this possible?

                        C Offline
                        C Offline
                        Chris Losinger
                        wrote on last edited by
                        #23

                        a) is reading a document a Turing-complete task? b) is C++ a Turing-complete language? yes & yes = yes

                        image processing toolkits | batch image processing

                        CPalliniC 1 Reply Last reply
                        0
                        • C Christian Graus

                          I want to cry.

                          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                          V Offline
                          V Offline
                          Vikram A Punathambekar
                          wrote on last edited by
                          #24

                          *hands tissues*

                          Cheers, Vikram.


                          The hands that help are holier than the lips that pray.

                          1 Reply Last reply
                          0
                          • C Chris Losinger

                            a) is reading a document a Turing-complete task? b) is C++ a Turing-complete language? yes & yes = yes

                            image processing toolkits | batch image processing

                            CPalliniC Offline
                            CPalliniC Offline
                            CPallini
                            wrote on last edited by
                            #25

                            The hypothesis was

                            vinaymarje wrote:

                            I would like to write a win32 application in C++ to read a PDF document. Is this possible?

                            ;)

                            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                            In testa che avete, signor di Ceprano?

                            C 1 Reply Last reply
                            0
                            • V vinaymarje

                              I would like to write a win32 application in C++ to read a PDF document. Is this possible?

                              S Offline
                              S Offline
                              Steve Thresher
                              wrote on last edited by
                              #26

                              Your best bet is to buy a library from someone. This one works[^]

                              AxisFirst For Business

                              1 Reply Last reply
                              0
                              • V vinaymarje

                                I would like to write a win32 application in C++ to read a PDF document. Is this possible?

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

                                Yes, it's possible. You can get the PDF Specs[^] here. There are various open source PDF readers that might be of help. One is Sumatra PDF[^]. There is more information here[^] that could help get you started as well. Cheers, Drew.

                                S 1 Reply Last reply
                                0
                                • CPalliniC CPallini

                                  The hypothesis was

                                  vinaymarje wrote:

                                  I would like to write a win32 application in C++ to read a PDF document. Is this possible?

                                  ;)

                                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                                  C Offline
                                  C Offline
                                  Chris Losinger
                                  wrote on last edited by
                                  #28

                                  since it is entirely possible, the only thing left is the small matter of typing-in the implementation. what's the big deal ?

                                  image processing toolkits | batch image processing

                                  CPalliniC 1 Reply Last reply
                                  0
                                  • C Chris Losinger

                                    since it is entirely possible, the only thing left is the small matter of typing-in the implementation. what's the big deal ?

                                    image processing toolkits | batch image processing

                                    CPalliniC Offline
                                    CPalliniC Offline
                                    CPallini
                                    wrote on last edited by
                                    #29

                                    Possible is not probable. :)

                                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                                    In testa che avete, signor di Ceprano?

                                    1 Reply Last reply
                                    0
                                    • M MidwestLimey

                                      Look on the bright side, a pdf reader is unlikely to be related to a nuclear power plant control system ... it could be sooo much worse!


                                      I'm largely language agnostic


                                      After a while they all bug me :doh:


                                      M Offline
                                      M Offline
                                      martin_hughes
                                      wrote on last edited by
                                      #30

                                      Except... maybe he needs to build a pdf reader in order to open the instructions on how to build a nuclear power plant control system... :omg:

                                      ***The collected future Mrs. Martin Hughes***

                                      1 Reply Last reply
                                      0
                                      • L Lost User

                                        Yes, it's possible. You can get the PDF Specs[^] here. There are various open source PDF readers that might be of help. One is Sumatra PDF[^]. There is more information here[^] that could help get you started as well. Cheers, Drew.

                                        S Offline
                                        S Offline
                                        StevenWalsh
                                        wrote on last edited by
                                        #31

                                        I like how the specifications are in pdf format :)

                                        L 1 Reply Last reply
                                        0
                                        • S StevenWalsh

                                          I like how the specifications are in pdf format :)

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

                                          Heh - hadn't thought of that! Cheers, Drew.

                                          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