Text hyperlink to EmbeddedFile

Hi,

Is it possible to have a text hyperlink to embedded file.

I have a pdf file with some embedded files and i would to create in text some hyperlinks to this embedded file to open it.

Thanks for your help.

JW

@jweverest-1

Thanks for your inquiry.

We already have logged a feature request as PDFNET-40886 in our issue tracking system. We have linked your post with the ticket ID as well, so that you will receive notification once the feature is available. Furthermore, you may please use FileAttachmentAnnotation in order to provide a link to embedded file(s) inside PDF, while using following code snippet:

var pdfDocument = new Document(dataDir + "FileWithAttachment.pdf");
Page pdfPage = pdfDocument.Pages[1];
Aspose.Pdf.Annotations.FileAttachmentAnnotation fileAttachment = new Aspose.Pdf.Annotations.FileAttachmentAnnotation(pdfPage, new Aspose.Pdf.Rectangle(0, 0, 16, 16), pdfDocument.EmbeddedFiles[1]);
fileAttachment.Rect = new Aspose.Pdf.Rectangle(100, 100, 120, 120);
fileAttachment.Icon = Aspose.Pdf.Annotations.FileIcon.Paperclip;
fileAttachment.Title = "Attached file";
fileAttachment.Contents = "Attached file";
pdfDocument.Pages[1].Annotations.Add(fileAttachment);
pdfDocument.Save(dataDir + "LinktoFileWithAttachment.pdf");

Concerning to the logged feature request, we will surely let you know once we make any significant progress towards its availability. Please spare us little time.

We are sorry for the inconvenience.

Is this feature available ?

@CDSNovartis

Regretfully, the feature could not get implemented due to other feature and enhancements requests which were logged prior to it. We will surely update this forum thread as soon as we have some news about its availability. Please give us some time.

We are sorry for the inconvenience.

Hi Asad,

Thanks for responding.

As this feature is not available, Is it possible for us to set the location of another hyperlink as Goto action and get it auto clicked by code.

My logic is, we will create one FileAttachmentAnnotation and we will set a reference of this in rest of the annotations/ hyperlinks.

Thanks

Akhil

image003.jpg (181 Bytes)

@CDSNovartis

We believe that you have posted your similar inquiry in a separate thread as well. We are responding you there.

Hi,

What is the status of PDFNET-40886, is it possible to track the progress of the ticket?
Is the feature (add text hyperlink to open embedded attachment) available now?

@mdubas

The ticket status can be checked at the bottom of this thread. Furthermore, we will also post an update here as soon as the earlier logged ticket is resolved.

Could you please also share a sample PDF document for our reference in which link to embedded files are already present? It would help us in investigating the functionality accordingly.

So is the PDFNET-40886 resolved or not? Could you send a link to the ticket where it is is possible to see the status? My case is exactly as the one described here:

@mdubas

The ticket has been linked to this thread as well and you can see its status at the bottom of the conversation that it is not yet resolved. Please check the screenshot. Screenshot 2022-06-21 211540.png (35.8 KB)

Furthermore, we have recorded your concerns under the logged ticket and will surely inform you once it is resolved.

We apologize for the inconvenience.