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

Free Support Forum - aspose.com

Problem with Header and PDF


we have a Document “TestDocument.docx” which was created with Aspose. If we save the file as pdf you can see that the header is too wide. Save as docx is all okay.

If we edit the TestDocument.docx (see TestDocumentWithHello.docx) and save this document as pdf, it is all okay.

We are using Aspose.Words 16.5.0
2x Windows 10 64 Bit 1x Windows 7 64 Bit
Word 2013

Here is a Test Project:

<pre style=“font-family: “Courier New”; background-color: rgb(255, 255, 255);”>import com.aspose.words.*;

* Created by Alexander.Joerg on 28.06.2016.

public class AsposeTest {
public static void main(String[] args) {

try {
Document document = new Document(“C:\temp\testDocument.docx”);

Document document1 = new Document(“C:\temp\testDocumentWithHello.docx”);

} catch (Exception e) {
Hi Alexander,

Thanks for your inquiry. 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-13803. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-13803) have been fixed in this Aspose.Words for .NET 22.2 update also available on NuGet.