When converting docx documents to pdf something is going wrong with the top en bottom margins
Its looks that the converter is using 35.433070866 points (1,5 cm) instead of 70.9 points (2.5cm).
When reading the values from the source document it seems to be correct:
Document document = new Document(iinputstream); DocumentBuilder builder = new DocumentBuilder(document); PageSetup pageSetup = builder.getPageSetup(); pageSetup.getTopMargin() = 70.9 points pageSetup.getBottomMargin() = 70.9 points
When opening the original docx document in Office365: ok with correct margings
When opening the original docx document in LibreOffice: NOT ok: I need to change the top en bottom margings to 70.9 points: then it is correct!
So is Aspose using a LibreOffice default engine to transform to pdf ???