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

How to interact with pdf widget annotation using poppler?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 415 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.
  • H Offline
    H Offline
    hank17_0
    wrote on 23 Jun 2021, 02:28 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
    • J Offline
      J Offline
      JoeCFD
      wrote on 23 Jun 2021, 17:42 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 24 Jun 2021, 01:38
      0
      • J JoeCFD
        23 Jun 2021, 17:42

        @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 24 Jun 2021, 01:38 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

        1/3

        23 Jun 2021, 02:28

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved