Justify text and setting interline value in a multiline field

17 views
Skip to first unread message

Alex

unread,
Jul 22, 2011, 9:04:07 AM7/22/11
to CenoPDF Support Group
Hi Yang,

can a javascript automatically justify text in a multiline field
(horizontally)?
And what can I do to set interline value to a fixed vaue (example:
single line)

Thank you,
Alex

Yang Lu

unread,
Jul 22, 2011, 11:50:55 AM7/22/11
to cenos...@googlegroups.com
Alex,

Here is the document you want to have a look.
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_referen
ce.pdf

Look at the Field object. The alignment and multiline property might be the
ones you are looking for:

var f = this.getField("MyText");
f.alignment = "center";

f.multiline = false;


Yang

Hi Yang,

Thank you,
Alex

--
You received this message because you are subscribed to the Google Groups
"CenoPDF Support Group" group.
To post to this group, send email to cenos...@googlegroups.com.
To unsubscribe from this group, send email to
cenosupport...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cenosupport?hl=en.


Alex

unread,
Jul 22, 2011, 1:49:28 PM7/22/11
to CenoPDF Support Group
The link give me this response: "Sorry, this page is not available".

Maybe wrong.

Alex



On 22 Lug, 17:50, "Yang Lu" <y...@lystech.com> wrote:
> Alex,
>
> Here is the document you want to have a look.http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_...

Yang Lu

unread,
Jul 22, 2011, 3:06:18 PM7/22/11
to cenos...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages