Skip to main content
Known Participant
September 12, 2018
Answered

Printing a fillable PDF form with scrolling text fields

  • September 12, 2018
  • 5 replies
  • 27410 views

Is there a way to show all typed text typed into a scrolling text field when you print a fillable PDF form even if all of the text is not visible on screen (because it extends the text box)?

Correct answer try67

The basic code is something like this:

this.getField("FieldName").textSize = 0;

You can add it under the document's WillPrint event, and then change it back in the DidPrint event.

Regarding my second suggestion: It doesn't have to be a separate file. It can be done using hidden pages that are spawned especially for this purpose and deleted after the file is printed. I've developed similar scripts for some clients in the past so if you're interested in hiring someone to develop it for you, you can contact me via try6767 at gmail.com to discuss it further.

5 replies

Dave Creamer of IDEAS
Community Expert
May 1, 2025

Depending on your needs and budget, you can look at AEM Forms Designer (formerly LiveCycle Designer). It can create expanding text fields and tables. The PDFs only work on computers and not through browsers, however, there are options for web-based forms. Here is a short table showing the difference between Acrobat forms and Designer PDF forms:

https://www.ideastraining.com/classOutlines/AcroFormsVsXFA.html

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
New Participant
April 24, 2024

Hi there I have multiple feilds that scroll in our document, when I put the willprint event code in I don't know how to make it apply to all 16 feilds. How do I make the code applicable to all of the scrolling feilds? 

 

try67
Community Expert
April 24, 2024

Duplicate that line of code, once for each field. It's also possible to do it using an array.

New Participant
April 24, 2024

Thank you! I feel silly, I was leaving out the semi colon between or trying to add them all in a string with commas between in the same line of code duh! Very new to this and appreicate your support on these threads. I'm learning a lot. 

 

New Participant
March 6, 2021

yusufbashir711@gmail.com

New Participant
February 5, 2020

Hi,

What is the code for the Did Print field?  Thanks

try67
Community Expert
September 12, 2018

You can set the font size to Auto before printing it, or copy it to another location (where there's more place). Either solution will require using a script, though.

Known Participant
September 12, 2018

Do you know the script for "font size Auto?"

My boss is concerned that the type may print incredibly small if it is set to Auto though. This is an employee evaluation form and she says supervisors often have a lot to say

But I'll try it and run it past her.

Is your 2nd suggestion to simply include a 2nd document? If so, she's against that.

try67
Community Expert
May 1, 2025

Thank you, I understand. I switched to Auto. Are the Appearance Settings correct for Auto?

 

 

 


If you have Scroll Long Text enabled then the text will just scroll when it reaches the end of the field, and then some of it might not be visible on the printed copy.