Hello.

 

I have recently come across this very interesting article:

 
<http://blogs.uoregon.edu/developments/2010/12/29/pdf-making-text-fields-gro
w-to-accommodate-text/>
http://blogs.uoregon.edu/developments/2010/12/29/pdf-making-text-fields-grow
-to-accommodate-text/

 

I would like to do something like that too, using iText.

Only that I don’t know if it is supported.

As far as I see, it cannot even be implemented with Acrobat Pro alone…

Does anyone has the knowledge of assessing if this is do-able with iText?

The requirements are (as far as I see) (this is for using Acrobat Pro and
other tools like LiveCycle Designer):

 

The key to making the text fields grow to accommodate text is to:
1. Make them multiline (Object palette > Field tab > Allow multiline
property). ß----------I think this is do-able.
2. Make them expandable in height (see “Making a Field Expandable”
<http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/>
here).
3. Put them in a flowed subform (that is, a subform whose “Object palette >
Subform tab > Content property” is set to “Flowed”) that allows page breaks
within its content (via the “Object palette > Subform tab > Allow Page
Breaks within Content property”).
4. Allow their contents to break across pages (Object palette > Field tab >
Allow Page Breaks within Content property).
Note that all subforms that ultimately contain the text fields (i.e. all
subform containers up to the root subform which are parents of the text
fields) must be flowed and must allow page breaks within their content.
I also address an issue with content that gets cut-off at the bottom of a
page in my MAX 2007 Tutorial by placing the content directly inside the root
subform which is flowed by definition.

 

1. If you haven’t saved your form, make sure the Preview Type is set to
“Interactive” and that the Default File Type for New Forms is set to a
dynamic PDF format. You may also want to set the XDP Preview Format to a
dynamic PDF format while you’re at it.
2. If you’ve saved your form as a dynamic PDF, make sure the Preview Type is
set to “Interactive”.
3. If you’ve saved your form as a static PDF, none of these settings will
help you. You must first save your form as a dynamic PDF.
4. If you’ve saved your form as an XDP, make sure the Preview Type is set to
“Interactive” and the XDP Preview Format is set to a dynamic PDF format.
5. If you’re tired of running into these problems and want to avoid them in
the future, just set your Default File Type for New Forms to a dynamic PDF
format.

 

I guess, I ask for very complicated stuff that are probably not do-able with
iText… L

But any hint that iText doesn’t support some of these features would be
appreciated. (It’s a shame, Acrobat Pro doesn’t support this out-of-the-box
L)

Thanks.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to