Free Support Forum - aspose.com

Changing the document orientation

Hi,

I'm currently designing an PDF document through XML. The table format that I'm using is quite wide, so I'd like to change the PDF document orientation from portrait to landscape so that it all fits on the page. How would I do that?

I've tried searching the wiki for the answer, but couldn't find what I was looking for.

Hi,

You can achieve this by setting the IsLandscape property of Section to true. For more information please consult http://www.aspose.com/Documentation/file-format-components/aspose.pdf-for-.net-and-java/aspose.pdf.section.islandscape.html

Thanks.