Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Issue in setting the page size and height

$
0
0
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

Viewing all articles
Browse latest Browse all 3131