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

Free Support Forum - aspose.com

Incorrect page size during conversion of HTML with landscape orientation to DOCX

Aspose.Words 20.4 during conversion of the following HTML file Info.zip (2.1 KB) with the following code:

var doc = new Aspose.Words.Document(inputStream);
doc.Save(outputStream, Aspose.Words.SaveFormat.Docx);

generates this markup <w:pgSz w:w="11906" w:h="16838" w:orient="landscape" />. Here, orientation is landscape (which is expected) but height is greater than width (which is not expected for landscape). The same behavior can be observed when the file is converted online.


We have logged this problem in our issue tracking system with ID WORDSNET-21988. We will further look into the details of this problem and will keep you updated on the status of linked issue. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-21988) have been fixed in this Aspose.Words for .NET 21.7 update and this Aspose.Words for Java 21.7 update.