Works for me using the latest version. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Clemens Eichler > Sent: Wednesday, January 11, 2006 10:04 AM > To: [email protected] > Subject: [iText-questions] Using anchors inside tables > > Hi All! > > I want to generate pdf-documents with itext. In these > documents I want to > show anchors inside of table cells (see the code below). But > if I generate > such a document and open it, I can't use the hyperlinks to open the > requested page. > > Code: > > ... > Document document = new Document(); > > try { > PdfWriter.getInstance(document, new FileOutputStream( > "Test.pdf")); > > document.open(); > > PdfPTable table = new PdfPTable(1); > > Anchor anchor = new Anchor("My Homepage"); > anchor.setReference("http://www.myhomepage.de"); > > table.addCell(anchor); > document.add(table); > > } catch (DocumentException de) { > System.err.println(de.getMessage()); > } catch (IOException ioe) { > System.err.println(ioe.getMessage()); > } > > document.close(); > ... > > Can anybody help me? > > Regards, > > Clemens Eichler > > -- > Telefonieren Sie schon oder sparen Sie noch? > NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions >
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
