Anchor link to document attachment

How can I set a reference or an iText anchor to an attachment on my document using iText?

Answers


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.


Need Your Help

How do I echo the link and it's text from a scraped page with PHP

php string parsing hyperlink echo

So I am in the need of line of code that echos a link so that the $text is the text of the link and the $href is the href value.

Boot2Docker/Fig mounted volume not refreshing

nginx docker boot2docker fig

I am using fig to mount my OS X directory through the boot2docker host vm. I am using the already provided Users directory. Try the following:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.