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

Free Support Forum - aspose.app

Aspose convert doc to pdf loosing header margin for the document header

I am trying to convert my word document (.doc) to PDF and its loosing the margin that is set to the image in the page header.

Please find attached sample word file that I am trying to convert and the result word document.

Code used to convert doc file to pdf:
public void convertDoc(String source, String destination) throws Exception {
this.initialise(getLicenseURL(), source);
Document doc = new Document(source);

**here the source is my word document and the destination is the file location for output pdf

DemoDoc.docx (61.8 KB)
OutputPDF.pdf (31.1 KB)
Header Difference.png (56.0 KB)

This topic has been moved to the related forum: https://forum.aspose.com/t/aspose-convert-doc-to-pdf-loosing-header-margin-for-the-document-header/238780