Line positions are shifted when converting a DOCX to PDF with Aspose.Words .Net


When converting a DOCX to PDF, I noticed the lines in different columns are shifted.

var document = new Document(@".\test2.docx");
document.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;

I have attached the test files and a screenshot for your reference. (150.2 KB)
image.png (72.9 KB)

It seems that sometimes the two lines are supposed to be aligned in a way but ends up being misaligned in the Aspose pdf.

Could you please help to take a look?

UPDATE: after some investigation from my side I have noticed there were 3 very thin blank images at the left (0.05cm height), which was probably the reason why the images in the left were pushed down.
image.png (11.1 KB)

Although it is a weird set up, we are still expecting Aspose to produce the same results as Word PDF, is it something that could be improved?



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-20092. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.