Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
Adding a link from ITableCell to an attached file?
posted

Hi,

What I would like to do is add a link to an attached file in my pdf document.

like this:

currentText = currentCell.AddText();

currentLink =

new PDF.Report.Text.Hyperlink("#" + fileObj.GetLink());

currentText.AddContent("File Attachment" ,currentLink);

This is not possible or at least I don't know the syntax for the file path ("#" + fileObj.GetLink()).

Do you have any idear on how to solve this, please post!!!!

  • 1175
    posted

    Hi SirwaP,

    I spoke to a developer about this. As far as I can tell, both testing and looking at the code, there is no way to specify a link that does not point to an area that is specifically within one of the pages somewhere (i.e an element on page 2).  The file attachments are stored on the document itself, and displayed in a separate window in the PDF reader.  If there is a mechanism in the PDF spec for linking to an attachment via a hyperlink, I don’t see any support for it in the Documents engine.