Open Origina1s-jay opened 1 year ago
You'll need to make sure you set the appearance of the annotation. In my case, it worked like this PDAppearanceDictionary appearanceDictionary = new PDAppearanceDictionary(); appearanceDictionary.setNormalAppearance(appearanceStream); textAnnotation.setAppearance(appearanceDictionary);
you can set default appearance. textAnnotation.setDefaultAppearance("/Helv 12 Tf 0 g");
Can PDFbox render comments on PDF files on Android devices?
After I used pdfbox, I found that when I used PdfRenderer.Page.render to convert the content of the pdf page to a bitmap, I found that the annotations above were missing.