Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
…
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more