Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [SOLVED]PDF files how to

    General and Desktop
    5
    11
    4729
    Loading More Posts
    • 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
      toho71 last edited by

      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 Reply Quote 0
      • L
        lgeyer last edited by

        [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 Reply Quote 0
        • A
          andre last edited by

          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 Reply Quote 0
          • K
            Kxyu last edited by

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

            1 Reply Last reply Reply Quote 0
            • T
              toho71 last edited by

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

              1 Reply Last reply Reply Quote 0
              • G
                goetz last edited by

                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 Reply Quote 0
                • T
                  toho71 last edited by

                  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 Reply Quote 0
                  • T
                    toho71 last edited by

                    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 Reply Quote 0
                    • L
                      lgeyer last edited by

                      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 Reply Quote 0
                      • T
                        toho71 last edited by

                        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 Reply Quote 0
                        • L
                          lgeyer last edited by

                          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 Reply Quote 0
                          • First post
                            Last post