> -----Original Message-----
> From:
itext-questions-admin@...
> [mailto:
itext-questions-admin@...] On
> Behalf Of Chris Miller
> Sent: Wednesday, August 31, 2005 10:50 AM
> To:
itext-questions@...
> Subject: [iText-questions] Form field text shifting after setField?
>
> Hi everyone, thanks in advance for your support. I'm
> experiencing some problems filling form fields on the fly. I
> have seen a number of other posts regarding this issue to no
> avail, however, I'm confident it can be resolved. The problem
> involves the movement or shifting of form field text
> following the usage of the setField or setFields methods of
> the class AcroFields. The problem is especially apparent with
> multi-line text boxes and with text boxes that utilize the
> "resize text to fit box" feature.
>
> I allow users to fill out a PDF form, submit it back to the
> server, and then I use the form values they submitted to fill
> and flatten the same form on my server. However, when I (or
> the user) opens up the resulting PDF document the text within
> the form fields has moved drastically, which is not good
> given the "print ready" file we are trying to output. I have
> used both the HTML PDF submit and the FDF submit methods of
> submitting the PDF form, but experienced the same problem, I
> thought that the form field attributes (e.g. padding) weren't
> being passed or something so I was surprised that the FDF
> submit method did not work. Either way, the problem can be
> very clearly seen by accessing the URL below, you'll have to
> upload one image to see the first preview, then you can
> submit the form to the server, add the product to your
> shopping cart, and then press "view artwork" to see the
> flattened artwork where the multiline text boxes are clearly
> messed up (text is shifted up and to the left).
>
>
http://www.adsoftdirect.com/index.cfm?page=previewPdf&producti> d=128&templateid=3&storefrontid=6
>
> The current code that makes this possible is way simple,
> which is why I think the problem may be with iText, excuse
> that it's done in cold fusion script, but you get the idea...
> fdf = createObject("java",
> "com.lowagie.text.pdf.FdfReader").init(FDFByteArrayData);
> form1 = stamp.getAcroFields();
> form1.setFields(fdf);
>
> Also, I've seen it noted before that this problems is related
> to the different versions of acrobat/reader, however this
> problem is occurring across the board with all versions of
> acrobat and reader and a closer inspection of the generated
> PDF shows that the text has in fact moved before being
> flattened or it is not being inputted into the field properly
> in the first place.
>
> I know that it is possible to capture the form field
> coordinates and use columnText to "recreate" the text on the
> PDF, but this is hardly a long-term solution and would not
> take advantage of the "scale font size to fit" functionality
> which has numerous implications in terms of generating print
> ready documents. So if we could find a way to make this work,
> even gulp, if it involves modifying the underlying iText
> library, then I would be very gracious...I've been developing
> our technology for over two years and iText has been great,
> this is the last hurdle I've got to overcome so any help
> would be much appreciated. Thanks!
>
>
>
> -------------------------------------------------------------
> Chris Miller - President/CEO
> AdSoft Direct, Inc.
> 1-888-3-ADSOFT (1-888-323-7638)
> Office: 925-251-0566
> Cell: 510-504-5006
> E-mail:
cMiller@...
> Web:
http://www.adsoftdirect.com
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development
> Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing & QA
> Security * Process Improvement & Measurement *
>
http://www.sqe.com/bsce5sf> _______________________________________________
> iText-questions mailing list
>
iText-questions@...
>
https://lists.sourceforge.net/lists/listinfo/itext-questions>