Hi,
Please include more of your code. It does not show how this
PDAnnotationFreeText is created, and whether you called
*constructAppearances()* on it. Also upload your PDF to a sharehoster,
and mention what PDFBox version you're using.
Tilman
On 26.01.2024 07:39, Tam chilun wrote:
Dear developer
I use getAnnotations().add(anno) to generate annotations, ,but they won't
display in my browser. Do you need any other method or is it not supported yet.
Addannotations annoadder = new Addannotations();
PDAnnotationFreeText anno = annoadder.setanno(param);
PDPage page = document.getPage(Integer.parseInt(param[0])-1);
page.getAnnotations().add(anno);
best