You can pretty much do all of this with PDFBox. When you say you have a PDF divided into two parts though, it is important to understand how you made tho division to see if PDFBox has a method to deal with that mechanism. Otherwise, you can easily get the height, width then divide based on dimensions or look at the media box. The results here may vary however if you are processing many of these and they are non-deterministic. I am presuming you are not writing this for converting a single document.
The PDPageNode class has everything you need including setRotation(Int int); Duane Nickull *********************************** Technoracle Advanced Systems Inc. Consulting and Contracting; Proven Results! i. Neo4J, PDF, Java, LiveCycle ES, Flex, AIR, CQ5 & Mobile b. http://technoracle.blogspot.com t. @duanechaos "Don't fear the Graph! Embrace Neo4J" On 2012-11-16 8:51 AM, "Sébastien Boutté" <[email protected]> wrote: >Hi, > >I've got a pdf divided into two parts (Top / Bottom) >I would like to make a new pdf with the top part rotated by 180 degrees. >How can i do this with pdfbox ? > >Another possibility : >I can also make the pdf in 2 pages ; top on the right position of the >first >page >and bottom on the right position of the second page. >Here, is to make the 2 pages merged in one page. (i can rotate first page >with pdfbox) >How can i do this with pdfbox ? > >Thanks for your time, > >Sebastien Boutte

