These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Justify text in a box

dompierre
Registered: Jan 20 2007
Posts: 2

Hi,
 
I am helping out a friend by creating a justify script using Javascript in a text box. He would like it to like Microsoft Word does justify. All line have the same amount of text basically.
 
I am not sure this can be done ?
 
Any ideas ?
 
Thanks,

My Product Information:
Acrobat Pro 7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can set a text box to right align text or left align text. But the kind of text justification that Word, InDesign, or any other fancy text layout tool does is just right off the map for form fields. Form fields are for simple text entry, not high level text formating, that's what those layout and design tools are for. Be glad you can at least use different fonts and don't tempt the PDF gods.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script