Thanks a lot, unfortunately I haven't yet received my book, so I'll have to wait a few days to try it.
----- Ursprüngliche Mail ----- Von: "1T3XT BVBA" <[email protected]> An: [email protected] Gesendet: Mittwoch, 29. Dezember 2010 18:01:21 Betreff: Re: [iText-questions] Add reference in text to attached file Op 29/12/2010 17:17, Sebastian Müller schreef: > > Hi there > > I was able to add an attachment to my PDF: > > PdfFileSpecification specification = > PdfFileSpecification.FileEmbedded(writer, name, name, null); > writer.AddFileAttachment(specification); > > But now I would like to add something like a reference to this file in the > text of my PDF. Is it possible that if a click that "link" the file is opened? you're adding the file as a document-level attachment (section 16.2.2 Document-level attachments - p535). You should add the file as a file attachment annotation (7.3.3 File attachments - p222). As you can read on page 223, you can add a file attachment annotation as an attribute to a Chunk. (The page numbers refer to "iText in Action - Second Edition"; see http://itextpdf.com/book/ ) ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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 -- Sebastian ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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
