Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]PDF files how to
QtWS25 Last Chance

[SOLVED]PDF files how to

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 5.4k Views
  • 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.
  • T Offline
    T Offline
    toho71
    wrote on last edited by
    #1

    Is there a easy way to open and show a pdf file in qt.

    In that case some simpel code would be nice or some hints.

    I have heard about poppler but haven't read something yet

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      [quote author="toho71" date="1321340872"]
      I have heard about poppler but haven't read something yet
      [/quote]

      Well, why don't you just start doing so?

      http://poppler.freedesktop.org/
      http://people.freedesktop.org/~aacid/docs/qt4/
      http://doc.qt.nokia.com/qq/qq27-poppler.html

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        There is no build-in, easy way to do it. However, you are not the first integrating poppler in a Qt application, so I suggest you do a bit of searching for code on that and use that as inspiration.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kxyu
          wrote on last edited by
          #4

          You can try showing that on QWebView, some say it's possible, but as for me, I failed that

          1 Reply Last reply
          0
          • T Offline
            T Offline
            toho71
            wrote on last edited by
            #5

            Thanks all of you.
            I give poppler a try.
            Is it free to use.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              If you do not need to integrate it tightly into your application, then "QDesktopServices::openUrl() ":http://doc.qt.nokia.com/4.7/qdesktopservices.html#openUrl could be an option too. It opens the PDF in the default application for such. The viewer is run as an external application though and you do not have any control over the app.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • T Offline
                T Offline
                toho71
                wrote on last edited by
                #7

                Great
                I though about this solution and maybe I use it instead.

                Could you Volker check this thread to and give me a Solution perhaps.

                "QVectorproblem":http://developer.qt.nokia.com/forums/viewthread/11606/
                I'm stuck

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  toho71
                  wrote on last edited by
                  #8

                  bq. If you do not need to integrate it tightly into your application, then QDesktopServices::openUrl() [doc.qt.nokia.com] could be an option too. It opens the PDF in the default application for such. The viewer is run as an external application though and you do not have any control over the app.

                  This was very easy to use

                  And another question
                  Is poppler free to use in a distributed system ( No easy answer to this)

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lgeyer
                    wrote on last edited by
                    #9

                    I'm not quite sure what the "distributed system" should be in your case but poppler is licensed under the terms of the "GPLv2":http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html. This basically means that if you want to use poppler in a "commercial application":http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#GPLCommercially you will have to release your source code under the terms of the GPL as well. IANAL.

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      toho71
                      wrote on last edited by
                      #10

                      Thank you.
                      My application will be a standalone application on many machines.
                      Could I use this lib then without sharing the sourcecode

                      Answer
                      bq. Thus, for instance, you must make the source code available to the users of the program as described in the GPL, and they must be allowed to redistribute and modify it as described in the GPL.

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        lgeyer
                        wrote on last edited by
                        #11

                        It depends. If you create an application just for your company and it is just used internally there is no need to release any source code. But if you release the source code or the product to the public you will have to release the source code under the terms of the GPL as well. IANAL.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved