gpt4 book ai didi

iText 矩形 - 无法删除边框

转载 作者:行者123 更新时间:2023-12-01 12:47:00 30 4
gpt4 key购买 nike

我似乎无法删除矩形上的边框!请参阅下面的代码,我正在使用 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);

最佳答案

我已经意识到它是有边框的注释,删除使用

annotation.setBorder(new PdfBorderArray(0f, 0f, 0f));

关于iText 矩形 - 无法删除边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14967188/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com