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. Displaying PDF
Forum Updated to NodeBB v4.3 + New Features

Displaying PDF

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 2.5k 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.
  • D Offline
    D Offline
    deepakberiwal
    wrote on last edited by
    #1

    I have a requirement in which I need to display a PDF file into the application. We have third party libraries for performing the same.

    I would like to know if I can have an embedded display of PDF in the application or will I need to start and external PDF viewer for the same.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can use "poppler":http://poppler.freedesktop.org for PDF rendering in a Qt application

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deepakberiwal
        wrote on last edited by
        #3

        I have one more query.

        Do we get the embedded pdf file display or it opens another window to display the pdf.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That's up to you

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deepakberiwal
            wrote on last edited by
            #5

            @SGalst: Thanks for the info.

            Is there any way to check if adobe reader in installed in the system using qt.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You can try calling the system command "which" with the name of the executable. Or if it should be installed in a known fixed place, use QFile::exists

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Sam
                wrote on last edited by
                #7

                Is there anyway that we can check with the system registry if the software is installed or not !

                As in the current situation if we specify a particular path it will be different for different version of Adobe Reader, I would like to know if there is a generic way to implement this across various platforms.

                Regards
                Sam

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  That is so OS even distribution specific, I can't tell

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    ChrisW67
                    wrote on last edited by
                    #9

                    [quote author="DeepakBeriwal" date="1393488085"]I would like to know if I can have an embedded display of PDF in the application or will I need to start and external PDF viewer for the same.[/quote]

                    That depends on what facilities the third party library you already have provides. Since you don't name it we have no idea how it might be able to render on a Qt widget.

                    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