Hi tilman. the sample there is for PDAnnotationWidget PDAnnotationTextMarkup does not have a setAction() or setActions() method though.
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 >