Michael Harig wrote:
> Hi.
> 
> I'm trying to use PDF files as templates for (simple) reports (using 
> PdfStamper). I run into 2 problems:

You are using PdfStamper, but you are talking about

> 1. need to know the bottom and top total margin (page margin + footer/header).

But getting the bottom and top margins of EXISTING documents is IMPOSSIBLE!

> I found in PdfDocument the methods indentBottom() and indentTop().

DON'T EVER LOOK INSIDE PdfDocument!!!

> They seem to return the values I need, but they are protected methods.
> I did want to customize the sources

If you need the margins of a Document, use the methods available in the 
Document class. DON'T EVER LOOK INSIDE PdfDocument!!!

> but there are several errors in iText-2.1.7-sources.jar,
> most but not all related to missing BouncyCastle classes
> (unfortunately that website is down atm).

You can download the necessary BC jars from:
http://itext.svn.sourceforge.net/viewvc/itext/trunk/lib/

> 2. Furthermore, When "growing" a table all items below that
> (except footer) have to be moved. I couldn't figure out how to achieve this.

It is IMPOSSIBLE to "reflow" content on an existing PDF document.

> Anyone with suggestions, please?

Your design is flawed based on wrong assumptions about PDF.
I suggest that you catch up with some reading about PDF first.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to