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);
doc.save(destination);
}
**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)