Re: [iText-questions] How to Shrink Content and Add Margins

2009-04-07 Thread 1T3XT info
JarrodCook wrote: > In some cases a PDF might have a crop box in > place. If this occurs you will be able to resize the media box like normal > and the dimensions of the page rectangle will change and it will seem as > though it resized and you can even put content in the area you just > expanded,

Re: [iText-questions] How to Shrink Content and Add Margins

2009-04-07 Thread JarrodCook
I know this thread is kind of dead, but i myself have found it very helpful. So first off let me just say thank you for posting this solution I was working on a project that allowed users to select reports to include in their final pacakage and upload pdf attachments and then generated their repo

Re: [iText-questions] How to Shrink Content and Add Margins

2007-07-14 Thread Ethan King
I am sorry for taking up so much of your time and thank you for your help. Your code is very generous and you can be rest assured that I have already ordered a copy of the iText in Action book from Amazon. -Ethan On 7/14/07, Bruno Lowagie <[EMAIL PROTECTED]> wrote: Ethan King wrote: > I don't

Re: [iText-questions] How to Shrink Content and Add Margins

2007-07-14 Thread Bruno Lowagie
Ethan King wrote: I don't mean to beat a dead horse. But this is an important part of a project that I am coordinating. On any other mailing list, you would get the response: "too bad for you if you didn't understand the advice." The fact that they have been shrunk is important, had these ex

Re: [iText-questions] How to Shrink Content and Add Margins

2007-07-12 Thread Leonard Rosenthol
PDF page size is defined by a rectangle called the MediaBox that is referenced on each page. That enables each page to be a different size, if you're so inclined. Changing the page size is trivial - you just change the value o the MediaBox. However, your content is still "anchored" at the

Re: [iText-questions] How to Shrink Content and Add Margins

2007-07-12 Thread Ethan King
Thanks for your response. It seems that option 2 using PdfReader & PdfStamper is the only way I can go. I need to maintain the contents of a page and not just an image of the page. You post makes me wonder though about the way page size is defined by PDF. It would seem to me that rehoretically

Re: [iText-questions] How to Shrink Content and Add Margins

2007-07-12 Thread Bruno Lowagie (iText)
Ethan King wrote: > This question has kind of been addressed in the past but not as directly > as some would hope. I am looking to use iTextSharp to do > something similar to the Bates numbering function in Adobe Acrobat 8. > > Basically I would like the shrink the contents of a PDF page to a

[iText-questions] How to Shrink Content and Add Margins

2007-07-11 Thread Ethan King
This question has kind of been addressed in the past but not as directly as some would hope. I am looking to use iTextSharp to do something similar to the Bates numbering function in Adobe Acrobat 8. Basically I would like the shrink the contents of a PDF page to allow a margin above and below t