Am 05.12.2021 um 04:57 schrieb chitgoks:
Hi tilman. the sample there is for PDAnnotationWidget
PDAnnotationTextMarkup does not have a setAction() or setActions()
method though.
it's additional actions
widget.setActions(annotationActions);
but I see this is missing for other annotations. Try setting it manually
annotation.getCOSObject().setItem(COSName.AA, actions);
the PDF specification is unclear, in "trigger events" it mentions that
it works in annotations, but then it's only specifically mentioned in
widget annotations.
Tilman
On Sun, Dec 5, 2021 at 11:39 AM Tilman Hausherr
<thaush...@t-online.de> wrote:
Am 05.12.2021 um 03:11 schrieb chitgoks:
are there ways to add functionality to PDAnnotationTextMarkup wherein a
click can do execute something? like opening a new url?
The additional action /D might be what you need.
and it turns out we have an example about this, FieldTriggers.java
in the source code download. That example is on a widget annotation.
Tilman