We have a issue with the docx to pdf conversion in Aspose Words 20.5. On some DOCX documents on some of our runtime instances we are experience a issue with specific lines from the DOCX file having spaces being removed.
The way our environment is set up is we have 2 instances of aspose running on each server. On some of our servers aspose inside one of the instances on those servers has this bug.
We have managed to isolate the issue to happen either in the load document code or the save PDF code. I put a example below on what we are doing to convert the docx to PDF. The docx file is the exact same on all instances.
Document doc = new Document(pathDOCX) doc.save(pathPDF, SaveFormat.PDF);
The affected lines are the exact same across all instances that are experiencing this issue. Not all instances are experiencing this issue.
We also found while googling this issues this article that contained something that might be related https://docs.aspose.com/pdf/net/replace-text-in-a-pdf-document/
Aspose.PDF for .NET supports the feature to search and replace text inside the PDF file. However recently some customers encountered issues during text replace when particular TextFragment is replaced with smaller contents and some extra spaces are displayed in resultant PDF or in case the TextFragment is replaced with some longer string, then words overlap existing page contents. So the requirement was to introduce a mechanism that once the text inside a PDF document is replaced, the contents should be re-arranged.
We are wondering if the code that does that spacing change might be what could be causing this issue?
We are unable to produce a non-production file that causes this issue. Because of this we can not give file samples.
Is there any guidelines on any additional tests we should run?