我似乎无法删除矩形上的边框!请参阅下面的代码,我正在使用 PDFannotation 创建一个链接。链接都有效,但每个矩形都有一个边框。
PdfAnnotation annotation;
Rectangle rect = new Rectangle(xOffset, yOffset, xOffset + tab.getScaledWidth(), yOffset+tab.getScaledHeight());
rect.setBorder(Rectangle.NO_BORDER);
annotation = PdfAnnotation.createLink(writer, rect, PdfAnnotation.HIGHLIGHT_NONE, PdfAction.gotoLocalPage(section.GetStartPageIndex() + 1,destination, writer));
stamper.addAnnotation(annotation,i);