You have a bit of work ahead, not with the clipping and rotating the pages, but with the layout if the pages have different sizes. The methods you'll need are:
PdfWriter.getImportedPage() - to get the page from other pdf
PdfContentByte.addTemplate() - to place the page
PdfReader.getPagesize() and PdfReader.getCropBox() - to know the page dimensions
PdfContentByte.clip() and PdfContentByte.newPath() - for clipping
Best Regards,
Paulo Soares
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Neil Taylor
Sent: Monday, January 12, 2004 0:23
To: [EMAIL PROTECTED]
Subject: [iText-questions] multipage display on one page of PDF document
Hi,
I am writing an application where there is a feature to print multiple
pages onto each sheet in the PDF. Therefore if I had a document with 6
pages, and chose to print 4 pages per sheet, then I would end up with a
2 page PDF with four 'pages' arranged on the first sheet and two
'pages' arranged on the second sheet.
My current approach within the application is to determine how many
'pages' will be printed on each PDF page. Then size the various pages
and output them to the PDF page and move onto the next page.
There is the possibility that an item on any of the reduced sized pages
may overrun its set area, and thus print into other areas of the final
PDF page. Is there a way to clip each area. I have seen references to a
clip() method in PDFContentByte, but it isn't clear to me how this can
be used. What defines a clip area?
Is it possible to set a clip area for each 1/4 of the page, write some
elements to the relevant 1/4 of a page and anything that is outside the
clip area is not drawn in the document?
Is there a better approach to doing this with iText?
Thanks for any assistance,
Neil
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
