How to interact with pdf widget annotation using poppler?
-
wrote on 23 Jun 2021, 02:28 last edited by
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?
Thanks for your help.
-
wrote on 23 Jun 2021, 17:42 last edited by
@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/ -
@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/wrote on 24 Jun 2021, 01:38 last edited by@JoeCFD said in How to interact with pdf widget annotation using poppler?:
Thanks for your reply. I will try it.
1/3