URL is Changed after Word to PDF Conversion using .NET

Hi,

in our software we offer to copy an URL to an object which then puts something like this into your clipboard: url:consense://consense_demo_olymp/D4035200.

If you paste such an url into word, what word does it to keep the url caption but actually changing the hyperlink (it removes the url: part for the linking):
image.png (12.4 KB)

If I save this document to pdf via word, the link in the pdf will be consense://consense_demo_olymp/D4035300 which works.

If I save the same document to pdf via Aspose, the link instead links to url:consense://consense_demo_olymp/D4035300 which does not work then.

I think this is a bug in Aspose, as the link which is opened is different from what Word displays when you edit the hyperlink via word.

Sample code:

        static void Main(string[] args)
        {
            var lic = new License();
            lic.SetLicense(@"S:\Aspose.Total.lic");

            var doc = new Document(@"S:\tmp\link\url.docx");
            doc.Save(@"S:\tmp\link\url_aspose.pdf");
        }

Sample documents:
samples.zip (205.7 KB)

Thanks for your help,
Daniel

@Serraniel

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-21801. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-21801) have been fixed in this Aspose.Words for .NET 21.4 update and this Aspose.Words for Java 21.4 update.