Docx => Pdf convertion corrupts document layout

Howdy. I’m using Aspose Words 15.3.0.0 for .NET.

I have a very simple piece of code that opens a .docx file (input.docx) and saves it as a .pdf file (output.pdf):

var document = new Document(…);
document.Save(stream, SaveFormat.Pdf);

As you can see, this operation corrupts file layout. For example, some images are shifted.
Is there anything I can do to resolve this problem?

Thanks in advance.