Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Beginners

Topic: Linespacing in multiline textfield
Conf: (P-PDF) Beginners, Msg: 162703
From: lnong
Date: 10/5/2007 07:35 AM

I've been googling for an answer to my problem, but I haven't found a solution that works, so I have to ask the experts here.

I'm using the ActivePDF ToolKit to programmatically fill in form fields of a PDF document using data from my database. I got all this to work perfectly except that when it fills in a Multiline Textfield, the linespacing within this field is not the same as the linespacing of the static text on rest of the document.

I have not been able to find a way (programmatically nor at design time) to set the linespacing inside a multiline textbox to, say, exactly 7pt. I did not see the option to set linespacing from the textfield's Properties box.

Then I thought I could do it using the Format property by adding some Acrobat javascript. However, I search through the whole Acrobat Javascript API document ( and I could not find an "Field.linespacing" property for the text field.

Then I thought I could do it using Rich Text Formatting somehow after enabling the Rich Text Format option for the textfield. I've never worked with RTF before, so I don't know how I'm supposed to use it but I gave it a shot. After reading up a little bit on the RTF syntax, I came up with this expression that I tried printing into the multiline textfield:

{\pard\sl-7\slmult0 THIS IS THE TEXT I WANT TO PRINT \par}

I thought that enabling Rich Text Format for this text field would allow it to accept the RTF formatting command above and just print out "THIS IS THE TEXT I WANT TO PRINT" with smaller linespacing. But that didnt work. It printed the whole original expression into the text field. I guess I'm not using this RTF feature correctly?

To me, linespacing should be a basic feature of any document creation process, but I cant understand why Acrobat does not support it. Anyway, so I'm stuck. Any suggestions or workarounds would be greatly appreciated. Thanks.

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
Platinum Sponsor

Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.


Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.