The “%20” converted to “%2520” in PDF

Create a word document and add link “mysite/documemetlinkwith%20.doc”. Use API to convert from document to PDF. After conversion you can see the link added in doc converted in following format

mysite/documemetlinkwith%2520.pdf

So the issue with %20. The “%20” converted to “%2520” in PDF

We are using version 16.12 , using .NET framework 4.5

MemoryStream stream = new MemoryStream(bytes);
Document doc = new Document(stream);
doc.Save(savePdfPath);

@thepolaratdc,

Please ZIP and attach your sample Word document and Aspose.Words generated PDF file showing the undesired behavior here for testing. We will then investigate the issue on our end and provide you more information.

Downloads.zip (31.9 KB)

Hi, I’ve uploaded Word and converted PDF for your reference.

Thanks!

@screamingbuddha,

The problem occurs because you are using a very old version of Aspose.Words for .NET i.e. 16.12 on your end.

After an initial test with the licensed latest version of Aspose.Words for .NET i.e. 19.2, we were unable to reproduce this issue on our end (please see 19.2.pdf (14.9 KB)). We would suggest you please upgrade to the latest version of Aspose.Words for .NET. Hope, this helps.