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. How to interact with pdf widget annotation using poppler?
QtWS25 Last Chance

How to interact with pdf widget annotation using poppler?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 392 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.
  • H Offline
    H Offline
    hank17_0
    wrote on last edited by
    #1

    I have a pdf file with a widget annotation. I used poppler to render it. But after that, how can I interact with the widget annotation? I want to click it, and get notified that the widget annotation was clicked. By far, it is render to a QImage, and I can see the annotation image, but can't click it.

    I found the following code under Poppler::Annotation reference.

    enum  	AdditionalActionType {
      CursorEnteringAction , CursorLeavingAction , MousePressedAction , MouseReleasedAction ,
      FocusInAction , FocusOutAction , PageOpeningAction , PageClosingAction ,
      PageVisibleAction , PageInvisibleAction
    }
    

    MousePressedAction
    Performed when the mouse button is pressed inside the annotation's active area.

    MouseReleasedAction
    Performed when the mouse button is released inside the annotation's active area.

    It seems to have MousePressedAction and MouseReleasedAction event. But how to used it?

    What I want to
    1.jpeg

    And what it is right now.
    5.jpeg

    Thanks for your help.

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @hank17_0 said in How to interact with pdf widget annotation using poppler?:

      widget annotation

      xpdf uses poppler and you can download xpdf source code to have a peek at it.
      http://www.xpdfreader.com/

      H 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @hank17_0 said in How to interact with pdf widget annotation using poppler?:

        widget annotation

        xpdf uses poppler and you can download xpdf source code to have a peek at it.
        http://www.xpdfreader.com/

        H Offline
        H Offline
        hank17_0
        wrote on last edited by
        #3

        @JoeCFD said in How to interact with pdf widget annotation using poppler?:

        http://www.xpdfreader.com/

        Thanks for your reply. I will try it.

        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