Quoting Leonard Rosenthol <[EMAIL PROTECTED]>:
> AcroForms are a much better approach to the problem - even if only
> as a placeholder.
I always generated documents 'from scratch' in my projects.
But more and more non-technical people want to have their say
in the design. Changing layout if you make your documents
from scratch demands quite some work...
> >My first idea would be to read the PDF, get all the field locations and
> >add the new data at absolute positions (the PdfStamper solution).
>
> That's what we've done.
>
> The reason this works out better than using the standard AcroForm
> APIs is that it's consistent regardless of data type (text vs. image) _AND_
> it gives you more flexibility for what to place in those "boxes".
Well, as I have to add barcodes too, I was thinking of
using PdfTemplates and scaling them in into a predefined field.
That would provide the flexibility you are talking about.
I was thinking of writing something like
setField(String name, PdfTemplate template);
But I haven't looked at the code yet to see if that makes sense...
> >If I can achieve all this with forms, it would make a great user-case
> >to add to the tutorial.
>
> Definitely!
I have had a lot of non-PDF related projects the past two years,
I hope this will change in the months to come. The only problem
is that people overhere are using iText for 5+ years now and they
say: if it works the old way, why try to write new ways...
br,
Bruno
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions