We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Page orientation to landscape for merged pdf..?


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



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, <A href="https://forum.aspose.com/t/129195</A></P> <P>Thanks,</P>

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


Please use the IsLandscape property of the PdfPageEditor class.