URI link doesn't split when the paragraph is justified-aligned

When I save the word document into a PDF file, the URI link that would have to be split into two lines since its paragraph is justify-aligned seems to be forced to appear as one word, thus it doesn’t look right.

Doc file
image.png (9.3 KB)

PDF file:
image.png (55.2 KB)

@Ryozen,

Please ZIP and upload your input 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.

Here’s the zip file.

Files.zip (255.7 KB)

@Ryozen,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17481. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Noted. Thanks!

@Ryozen,

Regarding WORDSNET-17481, we have completed the analysis of your issue and come to a conclusion that this issue is actually not a bug in Aspose.Words.

The line is wrapped because it is a REF filed which when updated inserts paragraph break at start. To fix this, you can either lock this REF field or set PdfSaveOptions.UpdateFields flag to false:

Document doc = new Document("D:\\temp\\ContractTemplate.docx");

PdfSaveOptions opts = new PdfSaveOptions();
opts.UpdateFields = false;

doc.Save("D:\\temp\\18.10.pdf", opts);