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

How to create printable text line placeholders for a fillable PDF form?

New Here ,
Feb 14, 2025 Feb 14, 2025

How do I force the fillable text to align with the placeholder lines that I have included in InDesign for a interacitve PDF I've exported? I must be doing something simple the wrong way. It gets worse the farther I type. And adding paragraph breaks makes it even worse. I need the text to align with the baseline of the placeholder lines from InDesign.

 

Is this even possible? Below is the comparison to how I'm setting the text field in Indesign vs. how it shows up in the form with I fill out the text field. 

 

Indesign_PlaceholderLines&InteractiveText.pngAdobeAcrobat_PlaceholderLines&InteractiveText.png

 

TOPICS
General troubleshooting , PDF forms , Print
395
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 ,
Feb 16, 2025 Feb 16, 2025

You have to carefully select the font size and location of the text field for this to work properly.

The field usually needs to be raised a bit above the actual lines for the text in it to match with them.

This needs to be done manually, though.

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 ,
Feb 17, 2025 Feb 17, 2025

Using lines to guide writing is a habit that comes from the old world of paper forms.
In a digital form, texts are necessarily straight, so there's no need for lines.


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
Feb 17, 2025 Feb 17, 2025

Agreed. The only time they could be needed is if you want the form to also be used printed. In that case you could use a script to hide the field (and show the underlying lines) when the form is printed.

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 ,
Dec 08, 2025 Dec 08, 2025

hi, i'm trying to do exactly this. i have a form that needs to be used with lines when printed, but then without lines when inputting the information into acrobat. could you please let me know how to do this? thanks so much!

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 ,
Dec 08, 2025 Dec 08, 2025
LATEST

Here's the basic code to use to do that. Under the document's Will Print event enter this:

if (this.getField("Text1").valueAsString=="") this.getField("Text1").display = display.noPrint;

 

And under the Did Print event enter this:

this.getField("Text1").display = display.visible;

 

You can duplicate those lines for each one of the fields you want to apply this for, or use a an array with the field names and a simple for-loop to iterate over all of them.

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