William Alexander Segraves wrote: >> Yes. See the HelloWorldWriter example in Chapter 2 of _iText in Action_. >> This example has all of the bits and pieces you need to solve your > problem. > > See also, TemplateClip example in Chapter 11.
Yes, HelloWorldWriter takes 4 full pages and puts them on one page as is done in a flyer that can be folded, but the principle to make 4 seperate pages, each with one quarter of a page is the same. The text that comes with the TemplateClip explains what happens: in fact you add the complete page to the PDF document, but by adding it to a canvas that is smaller than the original page (1/4 of its size), the end user will only see the part that fits the template (or the new and smaller page). PDF Experts can retrieve the complete page from that PDF by extracting the complete content stream. If you want to avoid this, you have to do what Robert Engels said. You can believe him when he says it's not trivial at all. However: if you do it as William Segraves explained 99.9% of the end users will never notice that the original page actually had more information than the page they can see in their reader application. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
