Hi, Von: Jeremias Maerki<[email protected]> > I've never come across any structure in the PDF specification that > allows to specify an orientation (portrait/landscape) in PDF. Basically, > you simply specify the page width to be bigger than the page height and > you get landscape. HTH Jeremias is correct, there isn't any orientation flag defined in the pdf specs, so that you have to do it on your own. There are different ways to achieve a page rotation. Jeremias described one of them. Most of the pdfs I saw were using a transformation matrix to rotate a page:
PDPage page = new PDPage(PDPage.PAGE_SIZE_A4); PDPageContentStream cs = new PDPageContentStream(document,page); cs.concatenate2CTM(0, 1, -1, 0, 0, 0) > On 11.04.2011 18:24:14 Tiago R. Pinho wrote: > > Hello, > > > > First of all I would like to say that this api has helped me a lot in my > > projects and for that I must give congratulations to all of the > developers > > envolved. > > > > Im writing to know if it is possible to work PDFs using landscape > > orientation instead of the portait one. > > > > Thanks > > Tiago > > Jeremias Maerki > > BR Andreas Lehmkühler

