We use Aspose.Words to convert from DocX to PDF. However, given the attached* input file, the header seems to shift downwards. If the header is large, it would appear off the page. Here is the code from our unit test that shows the error.
Dim sDocFileName As String = IO.Path.Combine(Environment.CurrentDirectory, “DE47125.docx”)
Dim oDocoument As New Aspose.Words.Document(sDocFileName)
oDocoument.Save(sPdfFileName, SaveFormat.Pdf)
I’m also not sure how to attach a .docx file since the format for posting seems to have changed. Contact me at jgreiman@appliedsystems.com for the input file.
You can attach input file by simply clicking on the Upload button. https://i.imgur.com/xhD43fK.png. You may need to zip the Docx file as Upload button only support jpg, jpeg, png, gif, zip and pdf extensions.
I have made this topic private, only you and Aspose Staff can read the topic content.
Take a close look at the lines in the footer. There are two lines that span the whole page in the docx equidistant from the edges of the image. There’s also a bit of margin at the bottom.
In the PDF, there’s only one line that doesn’t span the whole page centered in the image. And there’s no margin between the image and the bottom of the page.
We are able to reproduce the issue at our end. The issue has been logged into our system with ID WORDSCLOUD-287 for further investigation by our Product team. We’ll update you here once there is some information or a fix version available in this regard.
We are sorry for your inconvenience. The issue occurs because MS Word wraps header text around a floating table in the header, and Aspose.Words does not. This is a new feature. It requires additional investigation of Word behavior in regard to which floaters affect headers/footers and fix will need major re-work on Aspose.Words text wrapping around header/footer floaters. So the resolution for the your reported issue is postponed till further plans.