Hello,
I am having trouble with margins on doc file after conversion from pdf using Aspose.PDF for Java. The problem are shifted margins in doc file compared to one in pdf. For test, I created docx file with default margins (test_init.docx) and saved it as pdf (test.pdf). Using code snippet below, I converted test.pdf to doc file (test_result.doc). After conversion you can see margins aren’t set to default as the one in initial docx file.
Document doc = new Document("c:\\temp\\test.pdf");
DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.setMode(DocSaveOptions.RecognitionMode.Flow);
doc.save("c:\\temp\\test.doc", saveOptions);
I am using Aspose.PDF version 20.6-jdk 1.7. All mentioned files you can find in zip attachment.test.zip (46.6 KB)
Thank you in advance,
BR