Free Support Forum -

GoToRemoteAction/GoToAction destination encoding issue


I’ve a PDF document with hundreds of GoToRemoteAction annotations.
When I execute this code (Aspose.Pdf 19.5)

foreach (string s in pdfDocument.NamedDestinations.Names)
it will return the names with the correct encoding and french accents For example:
CA002-Resi9-Mono.indd:CA002-A2-Branchement à puissance limitée:67

Now, when I browse all the annotations in the document

AnnotationSelector selector = new AnnotationSelector(new LinkAnnotation(pdfDocument.Pages[i], Aspose.Pdf.Rectangle.Trivial));
var list = selector.Selected;
foreach (var annot in list)
LinkAnnotation linkannot = (LinkAnnotation)annot;
string action = linkannot.Action.GetType().Name;
/* some othe code, not important for the test */
string destName = (linkannot.Action as Aspose.Pdf.Annotations.GoToRemoteAction).Destination.ToString();
Console.WriteLine("destName: " + destName);

It will return
CA002-Resi9-Mono.indd:CA002-A2-Branchement ? puissance limit?e:67

The accents are replaced with “?”

Am I missing something? Is is a bug.




Thank you for contacting support.

Would you please share your source PDF document so that we may try to reproduce and investigate it in our environment.


11669-CatalogueSE2019_Chapitre_A.pdf (5.7 MB)

Hello, here is the file.
Thank you



Thank you for sharing requested data.

We have logged a ticket with ID PDFNET-46401 in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.