Sunday, 15 September 2013

iText rectangle - can't remove border -



iText rectangle - can't remove border -

i can't seem remove border on rectangle! see code below, creating link using pdfannotation. links work each rectangle has border.

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);

i've realised it's annotation has border, remove utilize

annotation.setborder(new pdfborderarray(0f, 0f, 0f));

itext

No comments:

Post a Comment