Free Support Forum - aspose.com

Page orientation to landscape for merged pdf..?

Hi,

Can I change page orientation for the pdf that I am generating using the pdf concatenation method?

Thanks

Hi,

It is possible to change page orientation using Aspose.Pdf.Kit.PdfPageEditor, please refer to http://www.aspose.com/documentation/file-format-components/aspose.pdf.kit-for-.net-and-java/aspose.pdf.kit.pdfpageeditor.html

or the following thread would be helpful, http://www.aspose.com/community/forums/thread/111852/setting-individual-page-size-and-orientation.aspx

Thanks,

I have review the above links. But there is no such direct property to set page orientation to landscape. I have tried by setting size for the concatenate pdf. below is the code snippets.

pdfEditor.Concatenate("d:/sample.pdf", "d:/tempFile.pdf");

float pageWidth=842;

float pageHeight=595;

PageSize pageSize = new PageSize(pageWidth, pageHeight);

pdfEditor.MakeNUp("d:/tempFile.pdf", "d:/OutputFileName", 2, 1, pageSize);

But this cause problems in printing. please suggest asap

Hi,

Please use the IsLandscape property of the PdfPageEditor class.

Thanks.