Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Printing a Fillable PDF form with Scrolling Text Fields

New Here ,
Oct 15, 2024 Oct 15, 2024

I have always been able to use the following script: this.getField("FieldName").textSize = 0; in the more tools-Java Script-under the documents Will Print event.  I have been using this script since 2016 and now it won't work. 

 

When I print the entire text will not print, what prints is the text boxes with + signs.

 

Adobe Acrobat (24.003.20180) version is what I am using.

 

Is there a new script?  

 

Thank you ! 

 

TOPICS
JavaScript , PDF , PDF forms
731
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

That script sets the text size of the field to 0, which is Font Size: Auto  ("shrink to fit") in the appearance tab of the field properties.  Before printing, run the script in the console and see how the field looks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 15, 2024 Oct 15, 2024

Ugh! no it didn't work.  I don't know why it is not working.  With many updates and our company going to Microsoft 365, who knows....:(  Adobe is the same.  Hmmm...  Well, Im open to other suggestions.  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024

Can you upload a form with that field in it, and your value filled in?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2024 Oct 15, 2024
LATEST

It seems that even with the Auto Size option there's a minimum threshold, and your text is too long for it.

Anyway, I don't think you'll be able to read it in the font size that is needed for it to all fit on the page. For example, the first field in the file you shared needs to be set at 2 for that to happen. It's practically illegible:

 

try67_0-1729031008616.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines