简体   繁体   中英

Anchor link to document attachment

如何使用iText在文档的附件上设置引用或iText锚?

If you want an Anchor to open any type of attachment: forget about it, ISO-32000-1 (that's the PDF reference in case you didn't know) doesn't support it. If you want an Anchor to open a PDF attachment: use a GoToE annotation. I quote section 12.6.4.4 of ISO-32000-1:

An embedded go-to action (PDF 1.6) is similar to a remote go-to action but allows jumping to or from a PDF file that is embedded in another PDF file. Embedded files may be associated with file attachment annotations or with entries in the EmbeddedFiles name tree.

In iText, the PdfAction class has different gotoEmbedded() methods. Read p538 of iText in Action - Second Edition to find out how to use these methods.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM