Applying PaperSize.LEDGER produces a document set to PaperSize. TABLOID (11" x17" whereas LEDGER is 17" x 11").
Applying PaperSize.QUARTO produces a document set to Paper Size 8" x 10" whereas Quarto paper size is 9" x 11" per
http://jacobtremblay.com/quarto-paper-size/
https://papersizes.io/imperial/quarto
@Test
public void writePageSizes() throws Exception {
ClassLoader classLoader = getClass().getClassLoader();
com.aspose.words.Document document = new com.aspose.words.Document();
DocumentBuilder builder = new DocumentBuilder(document);
builder.getPageSetup().setPaperSize(PaperSize.LEDGER);
document.save("ledger-size.docx");
document = new com.aspose.words.Document();
builder = new DocumentBuilder(document);
builder.getPageSetup().setPaperSize(PaperSize.QUARTO);
document.save("quarto-size.docx");
}
quarto.png (78.7 KB)
ledger.png (82.5 KB)
Archive.zip (10.6 KB)