Free Support Forum - aspose.com

HyperLink.LinkPageNumber

Using Aspose PDF and Aspose PDF Kit, I would like to concatenate two files and in the first file put a link to the first page of the concatenated file. e.g. if the first PDF has 3 pages I set the HyperLink.LinkPageNumber to 4 in Aspose PDF and then concatenate the second file with Aspose PDF Kit.

When I click on the link in the resultant combined file nothing happens. If I set the link page number to a page within the first file it is OK.

Is there any way to do this?

Hi,

Please first concatenate the files and then add the link.

Thanks.

How can I do this? Once the files are concatenated into a new file, I can only open the new file in PDF Kit. I cannot then get the link to update.

Hi,

You can use the CreateLocalLink method of the PdfContentEditor class of Aspose.Pdf.Kit for this purpose.

Thanks.

Thanks for that. I'll have to post in the PDF Kit fourm on how to do it!

Many thanks