Skip to Content

I was tricked when first trying to manage long texts in my adobe interactive forms and saw that a scroll-down bar appeared on my document to display all the text!!! that wasn’t my intention!!! I would like to read all the text on several page and be able to print it!

 Soon I found the solution in the adobe forum Re: Display more lines of table than size of current page posted by Gopi Krishna…this work and finally I obtained the result I was looking for…but I need also to format it….using javascript in my forms also that has been easy.

 But let’s see the solution step-by-step:

1 – Declare a Subform of TABLE with the following characteristics:

binding=normal

ExpandToFit=’X’

AllowPageBreak=’X’

OverflowLeader e OverFlowTrailer

 

2 – Inside that subform, declare another subform of TABLEROW with the following settings:

binding=normal

expandToFit=’X’

AllowPageBreak=’X’

RepeatSubFormForEachDataItem=’X’

OverFlowLeader e Trailer

Both the subform MUST have ‘FLOW CONTENT’ settled.

 

 Then put below the Subform 2 the field of your data node which contain the text to be displayed. Warning: you should carefully format your texts to have each row fit exactly one line in your adobe form!

For instance, if in your form fits 65 chars, you should make each line of your table exactly 65 chars! This to avoid the unpleasant ‘scroll-down’ effect on your adobe form.

Now you should see the effect, the long text will be printed in some pages…but of course there is no possibility to format it, because it is effectively only one field.

We can use a workaround: some formatting chars in the begin of the line/word and a few lines of JAVASCRIPT code in the docReady event of the Table Subform(the first one) on server side of your InteractiveForm :

In the example above, the LINE text is formatted in BOLD if in the begin of line there is the ‘/b’ code or if the line content is ‘TITOLO’.

Of course, you can use the methods of the TextField element to manage all of your text formattings!

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Mathan MP
    Hi,

    We tried creating a similar application and we are not very clear of what would be the exact result. Also please tell what we exactly need to do in the OverFlow Trailer and Expand to Fit Option

    Regards,
    Mathan MP

    (0) 
    1. Paolo Romano Post author
      Hello Mathan,

      I think the intent of the form should be quite clear: printing long text in adobe interactive form in various pages! Effectively, if you try to print long text normally, through a field, then you should see in your form a field filled  as long as your container and a scrolldown bar to look at it; of course, if you try printing this, the text is cut off. To avoid this, you should use the functionalities described above (table with tablerow) and again if you wish to format the long text you should use the javascript code taken from the textarea above…
      Hope to be clear; if you need more help, send me your email address and I’ll send you some screenshots of my project to have a look at the configuration.
      Greetings,
      Paolo

      (0) 

Leave a Reply