I have created some annotations with PDFBox and I dont want other readers to edit/change the annotations.
I tried to use
PDAnnotation.setLocked(true);
PDAnnotation.setReadOnly(true);
PDAnnotation.setNoRotate(true);
to fixed the annotations, and works perfect.
However, the Cloudy Polygon, Free Text with Chinese will disappeared when using in-browser pdf reader (like Edge, Google Chrome).
Reading in Adobe Acrobat Reader DC https://i.stack.imgur.com/ORvmc.jpg
Reading in Google Chrome https://i.stack.imgur.com/zZbob.jpg
I know that there is a function can be flatten the PDF in PDFBox, but it only flatten the acroform fields, cannot flatten annotations. Is there any method to make sure all annotations can be showed in any readers?