Hallo again!
I have been reading iText in Action, searching for XFA forms.
In 15.5 Summary says:
<<
For the time being, there is only limited support
for forms created with Adobe Designer (XFA forms).
>>
So, after reading this and your answer a question comes to me:
If I am creating a template PDF with Forms (namely XFA), why
iText has access to the form and can iterate it through the AcroFields?
Thank you in advance!
David Palomar wrote:
> I'm having some problems with leading space between lines in AcroFields.
AFAIK there is no such thing as "leading" when talking about AcroFields.
I guess you meant to say XFA Fields.
> If i open with Adobe Reader
> the original pdf file trf2_c_25.pdf and edit the second field (the big
> one) i can make
> enters and begin a new line with the desired space.
You're probably editing an XFA form.
> IF i do the same programatically via ITEXT the result is that the line
space
> between lines is not respected. The source code is below:
iText only fills AcroFields, it doesn't look at the XFA of the form.
> I believe this is a limitation / bug from the ITEXT package.
I'm 99% sure your interpretation is wrong.
> Just reading from "Document management — Portable document format —
> Part 1: PDF 1.7"
> in chapter:
> 9.3. Text State Parameters and Operators
>
> I found a table where the basic operators are defined for text:
>
> Character spacing
> Word spacing
> Horizontal scaling
> Leading
> ...
> ...
> Text knockout
Er... OK. Can you tell me what this has to do with AcroFields?
(12.7.4.3 of ISO-32000-1).
> Maybe is that ITEXT cannot interpertet the Leading Operator correctly...
> isn't it?
iText doesn't have to interpret anything!
iText has no problem whatsoever setting the leading.
> Or maybe it comes from the Acrofield element...
Indeed: you can't set the leading in a Text field of an AcroForm.
See 12.7.4.3 of ISO-32000-1.
> but the Adobe Reader shows it perfectly so
> I think that the Adobe Reader is interpreting it fine....
I think you're mixing XFA and AcroForm technology
------------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
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/