GoToRemoteAction is not mapping to the File When filename is in Chinese or any other Language

Aspose.pdf not supporting foreign language like Chinese/Japanese as filename while creating GoToRemoteAction hyperlink also mapping to the incorrect value as destination file.

We have also tried to assign the filename with foreign language(Chinese/Japanese) to the property “UnicodeName” of “FileSpecification” class, while creating “Go To Remote action”. But we are unable to set that value to that property.

Kindly suggest, how to create GoToRemoteAction with Chinese/Japanese filename as destination?

ForeignLanguageAs Link.png (6.2 KB)

@prnksheela,

Can you please put the code snippet?

@prnksheela,

I was able to replicate the error. I will be creating a ticket for the development team.

Code sample with the issue:

private void Logic()
{
    // Open document
    Document doc = new Document();

    // Create link
    Page page = doc.Pages.Add();

    //Create Rectangle Object
    var rectangle = new Aspose.Pdf.Rectangle(20, 500, 120, 600);

    // Create Link annotation object
    LinkAnnotation linkFileEnglishFileName = new LinkAnnotation(page, rectangle);

    linkFileEnglishFileName.Color = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Black);

    linkFileEnglishFileName.Action = new GoToRemoteAction($"{PartialPath}_link.pdf", 1);


    page.Annotations.Add(linkFileEnglishFileName);

    //Create Rectangle Object
    var rectangleTwo = new Aspose.Pdf.Rectangle(20, 100, 120, 200);

    // Create Link annotation object
    LinkAnnotation linkFileWithChineseCharacterInFileName = new LinkAnnotation(page, rectangleTwo);

    linkFileWithChineseCharacterInFileName.Color = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Red);

    linkFileWithChineseCharacterInFileName.Action = new GoToRemoteAction($"{PartialPath}_网站链接.pdf", 1);

    page.Annotations.Add(linkFileWithChineseCharacterInFileName);

    // Save updated document
    doc.Save($"{PartialPath}_output.pdf");
}

@prnksheela
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-53920

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as PDFNET-53920) have been fixed in Aspose.PDF for .NET 23.9.