I’m using Aspose.Pdf 9.1.0, and I’m creating a document with a page size of 64x64. I’ve checked the document with Mac Preview and Acrobat Pro, it looks ok.
When reloading the document using the following code, the page size is always 842x595. I’ve also tried with other documents created with other software, with different page sizes, and Aspose always returns the same size, no matter the page ratio or size.
Am I doing something wrong, or is this a bug?
Document pdfDoc = new Document(file);
final Page page = pdfDoc.getPages().get_Item(1);
System.out.println(page.getPageInfo().getWidth() + page.getPageInfo().getHeight());