Hi, After checking my code again I discovered that it wasn't the contentByte method that was the problem. The problem was that I used a cyrillic font (GillSansCyr). When using this font, the links get incorrectly formatted.
My application needs to support Cyrillic characters so I can't change the font. Is it possible to disable the automatic creation of links? Or is there any other way to go around this problem? //Daniel Paulo Soares wrote: > > Use ColumnText. > > Paulo > > ----- Original Message ----- > From: "meeger" <[EMAIL PROTECTED]> > To: <itext-questions@lists.sourceforge.net> > Sent: Friday, June 06, 2008 7:47 PM > Subject: [iText-questions] Links with contentbyte > > >> >> Hi, >> >> I am trying to create a PDF with a footer at the bottom of each page. >> I use contentByte() to do this. >> It works fine to add the text (with showTextAligned()) and it looks like >> expected. >> But the URLs and email addresses that are added are not correctly >> converted >> into links. >> ------------------------- >> The URLs are not converted at all, and the email address is converted in >> a >> strange way: >> >> The mailto-link stretches from the first occurence of any of the >> characters: >> " - (dash), . (dot) or @" and to the end of the row. >> >> Example: >> The row: "E-mail: [EMAIL PROTECTED] - www.google.com" >> creates a mailto-link that looks like this: "mailto:-mail: >> [EMAIL PROTECTED] - >> www.google.com" >> ------------------------- >> >> Is this a bug or is this not the intended way to add emails and URLs? >> How should I do instead? >> >> >> //Daniel >> >> PS. It works correct when adding it to the document directly. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Do you like iText? > Buy the iText book: http://www.1t3xt.com/docs/book.php > Or leave a tip: https://tipit.to/itexttipjar > > -- View this message in context: http://www.nabble.com/Links-with-contentbyte-tp17698880p17700336.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar