Russell Burke wrote:

That's what we are currently doing. The problem with that approach is that whenever there is a change to the text of a PDF document a developer has to get involved with modifying the XSL, XML and maybe the FOP code. I was looking for an approach where a non developer would modify the text and/or form fields using Adobe Acrobat and place the modified PDF in a Content Manager. A Java application would retrieve the document and update the form fields produce the PDF. This way a developer would maintain the code and not get involved with formatting the PDF document.

From that point on you would no longer be using FOP,
only the Acrobat created form and a tool to fill in the fields.
But as you stated: the editable fields are at absolute positions
and you can't reposition the rest of the non-editable content
(no tool is able to do that in an acceptable way).

I haven't followed the discussion from the start because
I didn't understand what FOP and Fields had to do with each other;
I don't know if there is a solution for your problem,
but I can suggest some possibilities:
If the fields are too small but you have enough whitespace to the right,
you can retrieve the coordinates of the field and use the left coordinate
as starting position for the names. You would than add the string at
absolute positions (using PdfContentByte etc...).
If you don't have enough whitespace to the right, you can again retrieve
the coordinates of the field, calculate the available width, calculate the
width needed for the string and scale the string so that it fits. The
result may or may not be acceptable for your client.
A third solution would be that the graphical designer adds a field that
is rather large and adds for instance 'customer X has paid Y euro' to
this field. You could then retrieve this string with iText and update the
field with the altered string 'customer John Doe has paid 1 euro'.
br,
Bruno



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to