好吧,我发现了这一点。很简单。
PDdocument doc = PDdocument.load();PDPage page = (PDPage)doc.getdocumentCatalog.getAllPages.get(i);List annots = page.getAnnotations;PDAnnotationTextMarkup markup = new PDAnnotationTextMarkup(PDAnnotationTextMarkup.Su....);markup.setRectangle();markup.setQuads();annots.add(markup);doc.save();



