[EMAIL PROTECTED] wrote:
>Hi,
>
>I'm trying to set a hyperlink on an existing PDF-file.
>Therefor I create an instance of the PDFStamper class and create a
>rectangle within a PdfAnnotation.
>Everything works fine with that, but the Problem is, that when I open
>the pdf-file, the rectangle (containing the hyperlink) is surrounded by
>a border. I tried to set the border-width to 0 or set the border-color =
>white. Nothing of that works.
>
The Rectangle properties are ignored when you pass a rectangle to
PdfAnnotation.
Please give this a try:
>***** CODE *****
>PdfStamper stamp = new PdfStamper(reader, fos);
>PdfAction action = new PdfAction("_http://www.google.de_");
>
>
PdfAnnotation link = new PdfAnnotation(stamp.getWriter(), 22, 38, 42,
310, action)
>stamp.addAnnotation(link, 1);
>stamp.close();
>
br,
Bruno
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions