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. Implementing a custom PDF viewer
Forum Updated to NodeBB v4.3 + New Features

Implementing a custom PDF viewer

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.2k 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.
  • Z Offline
    Z Offline
    zerg2011
    wrote on last edited by
    #1

    HI All

    I need PDF viewer for UNIX .

    This viewer must get pdf file and page ( or line ) number , or word and scroll to corresponding page.
    (In last option I mean viewer must find the page with passed word and scroll to this page.)

    Questions :

    -Is it possible to create such widget in Qt without third-party libs ?
    -What external viewer allows to solve this task?

    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      [quote author="zerg2011" date="1344936267"]-Is it possible to create such widget in Qt without third-party libs ?[/quote]
      Yes, absolutely. But don't underestimate the PDF standard. Implementing a PDF renderer from scratch that supports a reasonable portion of the standard is a multi-year project and only for experienced programmer(s).

      [quote author="zerg2011" date="1344936267"]-What external viewer allows to solve this task?[/quote]
      Poppler for example:
      http://doc.trolltech.com/qq/qq27-poppler.html
      http://poppler.freedesktop.org/
      Or just google "Qt display PDF".

      1 Reply Last reply
      0
      • G Offline
        G Offline
        guziemic
        wrote on last edited by
        #3

        Hi,

        bq. -Is it possible to create such widget in Qt without third-party libs ?

        I do not know any Qt widget that is able to open, display PDF without external libraries.

        bq. -What external viewer allows to solve this task?

        Some time ago I faced problem od displaying PDF and I used Poppler library. As I remember it was enough to give a file to this library and some area on which it could display PDF content.

        BR,

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zerg2011
          wrote on last edited by
          #4

          I probably wasn't specific enough.

          Firstly , I want to understand does Qt have completed (!) solution for pdf browsing
          , in the context of my task . ( Of cause I get that everything can be implemented from scratch. )

          Then , if in this forum anyone have positive experience in this area
          , it would be nice to hear these guys opinion.

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

            [quote author="zerg2011" date="1344943061"]
            Firstly , I want to understand does Qt have completed (!) solution for pdf browsing
            , in the context of my task .[/quote]
            No.

            [quote author="zerg2011" date="1344943061"]Then , if in this forum anyone have positive experience in this area
            , it would be nice to hear these guys opinion.[/quote]
            Yes, see the first link I gave you. It does what you want in a few lines of code and has Qt bindings.

            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