(For anyone's future reference):
Creating "invisible" link annotations (hyperlinks which show the link
pointer on mouse-over, but which otherwise do not have a visible outline)
ended up being easy, but not obvious. Below is how I did it - hopefully
this will save someone else some time.
(great library, BTW - happy owner of ITIA 2E).
Regards,
-Peter
After the normal reader / stamper setup and the creation of the
PdfAnnotation, I add this prior to stamper.addAnnotation (where my page
background happens to be the default (WHITE) color):
annotation.setColor(BaseColor.WHITE);
On my platform (Reader X on WinXP), this is the only line that worked; the
following all failed to remove the black box outline surrounding the
annotation:
//where rect is the Rectangle object positioning the annotation
rect.setBorderColor(BaseColor.WHITE); //also null
rect.setBorder(0);
rect.setBorderWidth(0);
annotation.setBorder(null);
annotation.setBorderStyle(null);
annotation.setMKBorderColor(null);
annotation.setMKBackgroundColor(null);
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Solved-creating-invisible-links-tp4092097p4092097.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php