How to interact with pdf widget annotation using poppler?
-
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
And what it is right now.
Thanks for your help.
-
@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/ -
@JoeCFD said in How to interact with pdf widget annotation using poppler?:
Thanks for your reply. I will try it.