Hi, I'm using anchor object to generate a link to a web page, the font used is underlined and the strange part comes when hover the link the chars reference well to the page but the line(underline) links to the same page but with a word concatenated at the end (the word is part of the pdf but the variable is already cleaned).
Example: [hovering the letters] "http://www.nabble.com" [hovering the line under letters] "http://www.nabble.comPrecio" this is part of my code. PdfPTable tableAvisos = new PdfPTable(1); tableAvisos.setTotalWidth(570); paragraph = new Paragraph(); paragraph.setLeading(10f); paragraph.add(new Chunk(avisos,mediumFont)); paragraph.add(new Chunk("\n")); Anchor enlace = new Anchor(link,linkFont); enlace.setName(link); enlace.setReference(link); paragraph.add(enlace); cell = createCell(paragraph, mediumFont, Element.ALIGN_LEFT, Element.ALIGN_MIDDLE, 1f, lightGray, 0, 0, 0, 0, null); cell.setMinimumHeight(120f); cell.setBorderColorTop(lightGray); cell.setBorderWidthTop(5f); cell.setPaddingTop(10f); cell.setBorderColorLeft(darkGray); cell.setBorderWidthLeft(0.8f); cell.setPaddingLeft(15f); cell.setBorderColorRight(darkGray); cell.setBorderWidthRight(0.8f); cell.setBorderColorBottom(darkGray); cell.setBorderWidthBottom(0.8f); cell.setPaddingRight(15f); cell.setPaddingBottom(15f); tableAvisos.addCell(cell); paragraph = null; .......... [ This is how a write it ] tagParrafo = new PdfStructureElement(tagDocument, PdfName.P); cb.beginMarkedContentSequence(tagParrafo); canvases = tableAvisos.beginWritingRows(writer.getDirectContent()); yCoord = tableAvisos.writeSelectedRows(0, 1, 10f, yCoord, canvases); tableAvisos.endWritingRows(canvases); cb.endMarkedContentSequence(); Any idea? Thanks -- View this message in context: http://www.nabble.com/Anchor-problem%2C-generates-strange-reference-tp25381441p25381441.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
