We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Position of image in header is changed after DOCX to PDF using C#

Hi, I have unexpected behaviour when converting Word document with image added to Header to PDF.
Image is positioned with following settings: relative to right page border.
Inside Word image is positioned as expected.
After converting to PDF using Aspose.Words image postion changes - image is closer to text.
Attached see screenshots of resulting documents.
sample_document_docx.PNG (47.4 KB)
sample_document_pdf.PNG (86.9 KB)

I cannot understand why is this happening.
Can you please help me to find out reason?
Thank you

@dmitriy.melchugov

Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.

Sample document (3).zip (19.9 KB)
attached please find Word document

@dmitriy.melchugov

We have tested the scenario using the latest version of Aspose.Words for .NET 20.1 and have not found the shared issue. So, please use Aspose.Words for .NET 20.1. We have attached the output PDF with this post for your kind reference.
20.1.pdf (57.4 KB)