Hi,
I am trying to set the page size and height of a pdf document but aspose always create the pdf document with same size. Here is the code.
com.aspose.pdf.Document pdfDocument = new Document();
pdfDocument.getPages().add();
pdfDocument.getPageInfo().setHeight(50);
pdfDocument.getPageInfo().setWidth(50);
pdfDocument.save("c:/documents/testdata/size.pdf");
Can you please let me know if there is any way through which I can set the page size in aspose.
Thanks
Rajeev Mathur
I am trying to set the page size and height of a pdf document but aspose always create the pdf document with same size. Here is the code.
com.aspose.pdf.Document pdfDocument = new Document();
pdfDocument.getPages().add();
pdfDocument.getPageInfo().setHeight(50);
pdfDocument.getPageInfo().setWidth(50);
pdfDocument.save("c:/documents/testdata/size.pdf");
Can you please let me know if there is any way through which I can set the page size in aspose.
Thanks
Rajeev Mathur