Billy Anachronism wrote: > Sorry I just realised that you probably meant INCREASE the size of the > mediabox, rather than decrease it. > <http://www.nabble.com/How-to-Shrink-Content-and-Add-Margins-to11547554.html#a11555129>
Yes, option 2 was what I meant. You can increase the page size. It's done more or less like this: http://1t3xt.be/?X0003df But instead of the PdfName.CROPBOX, you change the PdfName.MEDIABOX. Also you can use negative values for the rectangle. For instance: new PdfRectangle(0, -52, 612, 720); > I might try his suggestion of appending a cm entry to the content stream. That's dangerous, because you'll only change the "printed" content. All the interactive content won't change (because it's not part of the content stream). All your links will have an offset. That's not what you want. > So, do I add this cm entry once before all of my content or multiple > times before every piece of content on the page? Then, do i add > another cm and add text using normal itext functions or will itext > take care of the cm for the newly added text? I'm not going comment on it. If you go that way, you're on your own. (Meaning: it's possible for a PDF expert, but it's not something that can be explained or done for free. You'll cost us too much time on the list if you pursue this path.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php