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. QPdfDocument and QPdfView : display PDF annotation and highlight
Forum Updated to NodeBB v4.3 + New Features

QPdfDocument and QPdfView : display PDF annotation and highlight

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.3k Views 2 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.
  • R Offline
    R Offline
    removebeforeflight
    wrote on last edited by
    #1

    Hi,

    I use QPdfView and QPdfDocument to display PDF files inside my application.

    I would like to show text which is highlighted and possibily annotations who are in the PDF file. When I load a PDF file with annotations and highlighted text, the PDF is correctly rendered but annotation nor highlight are not showed.

    I looked in the documentation and found the QPdfDocument's render function which take QPdfDocumentRenderOptions option which seems to fit my need. But its returns a QImage. I would like to render directly my PDF inside my QPdfView.

    Is there any solution ?

    Y 1 Reply Last reply
    0
    • C Offline
      C Offline
      CPPUIX
      wrote on last edited by
      #2

      Hi,

      I'm not sure if I understand, but, you probably have the same situation as in Render PDF Page with QtPDF with its text, in which case the answer is most likely "no, not with Qt".

      1 Reply Last reply
      1
      • R Offline
        R Offline
        removebeforeflight
        wrote on last edited by
        #3

        Thank you for your response... very annoying !

        1 Reply Last reply
        0
        • R removebeforeflight

          Hi,

          I use QPdfView and QPdfDocument to display PDF files inside my application.

          I would like to show text which is highlighted and possibily annotations who are in the PDF file. When I load a PDF file with annotations and highlighted text, the PDF is correctly rendered but annotation nor highlight are not showed.

          I looked in the documentation and found the QPdfDocument's render function which take QPdfDocumentRenderOptions option which seems to fit my need. But its returns a QImage. I would like to render directly my PDF inside my QPdfView.

          Is there any solution ?

          Y Offline
          Y Offline
          yuanxin
          wrote on last edited by
          #4

          you may need a pdf annotation app, such as Adobe Acrobat, Xodo, or Foxit. pctechtest

          https://pctechtest.com/best-pdf-annotation-apps
          https://pctechtest.com/12-best-drawing-tablets-for-annotating-pdf
          https://pctechtest.com/20-best-note-taking-apps
          https://pctechtest.com/best-ipads-for-drawing-artists

          JoeCFDJ 1 Reply Last reply
          0
          • Y yuanxin

            you may need a pdf annotation app, such as Adobe Acrobat, Xodo, or Foxit. pctechtest

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #5

            @yuanxin Or if your app is not commercial, check poppler out.
            https://poppler.freedesktop.org/api/glib/poppler-Poppler-Annotation.html

            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