How to add rich text to a text field in a PDF

709 views
Skip to first unread message

Akshay Rao

unread,
Feb 17, 2011, 2:36:14 PM2/17/11
to live...@googlegroups.com
Hello ,
 
I am building a form which has a few text fields . In one of them I would like to have rich text.
 
I would like to know how can I enable users to get bullet points in the text box ? the only way I can do it now is to copy paste fromw ord into the PDF text box.
 
Any help will be greatly appreciated.
 
Thanks,
Akshay

Jyothi

unread,
Feb 17, 2011, 5:15:25 PM2/17/11
to Adobe LiveCycle Developers
You might want to try this.
Open the form in the designer. In the left navigation bar under
Heirarchy, select the field you want to change to Rich Text. In the
Object Editor on the right side,in the 'Field Format' property, select
Rich Text. I have never tried this. But I think this is the way to go.

Jyothi

Akshay Rao

unread,
Feb 17, 2011, 5:17:19 PM2/17/11
to live...@googlegroups.com, Jyothi
This enables the object to accept rich text , my question is what if the End User wants to type rich text (add bullet points to be specific) instead of just changing fonts etc.,

--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.


Bob Bailey

unread,
Feb 18, 2011, 1:14:30 PM2/18/11
to Adobe LiveCycle Developers
If you are in the rich text field and do a Ctrl e you should see the
rich text toolbar appear.

Bob




On Feb 17, 5:17 pm, Akshay Rao <akshayk...@gmail.com> wrote:
> This enables the object to accept rich text , my question is what if the End
> User wants to type rich text (add bullet points to be specific) instead of
> just changing fonts etc.,
>

Akshay Rao

unread,
Feb 18, 2011, 1:18:07 PM2/18/11
to live...@googlegroups.com, Bob Bailey
Thanks a lot , im looking to add bullets specificaly , i dont seem to be able to find that option , can anyone please help out?
 
I really appreiate al the help so far.
 
thanks
akshay

Falor, Brian

unread,
Feb 18, 2011, 1:27:27 PM2/18/11
to live...@googlegroups.com

Try

 

TextField.rawValue = "•  Camera\n•  Lights\n•  Action";

 

You won’t be able to get bullets into the actual code.  Therefore try adding it to a text box first.  To get your bullets, • use Ctrl + 7 and it will produce a bullet point like the one to the left.  You can then copy and paste into your code.


CONFIDENTIAL NOTICE: This e-mail transmission (and the attachments, if any, accompanying it) may contain confidential information. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any forwarding, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

Duane Nickull

unread,
Feb 18, 2011, 1:28:22 PM2/18/11
to live...@googlegroups.com
I found a hack for this.  Basically, you can insert an entity reference like 
            <value>
               <exData contentType="text/html">
                  <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p>&#8226; This is a bullet</p></body>
               </exData>
            </value>

into the source which then gets turned into a bullet.  You would have to maybe place a button beside it that says "add bullet" or something and then write script to add a new line and bullet whenever the button was hit.  The attached screenshot shows that this does indeed work.

Duane

********
22nd Century (my band) - http://22ndcenturyofficial.com/
Twitter - @duanechaos
********


Falor, Brian

unread,
Feb 18, 2011, 1:28:38 PM2/18/11
to live...@googlegroups.com

Incidentally – this should work even in plain text

Falor, Brian

unread,
Feb 18, 2011, 1:31:26 PM2/18/11
to live...@googlegroups.com

Sorry – didn’t look back into this thread far enough – you want users to be able to type in bullet points

Akshay Rao

unread,
Feb 18, 2011, 1:32:26 PM2/18/11
to live...@googlegroups.com
yes i want users to be able to type them

Falor, Brian

unread,
Feb 18, 2011, 1:33:39 PM2/18/11
to live...@googlegroups.com

Same thing – as long as you have Rich Text selected.  Instruct them to type in Ctrl + 7 and you should get a bullet point.

Duane Nickull

unread,
Feb 18, 2011, 1:34:15 PM2/18/11
to Adobe LiveCycle Developers
Use the approach I showed you and place a button  on your form that says “Insert new Bullet” and have it write the entity reference.

Duane

> > For more options, visit this group at
> >http://groups.google.com/group/livecycle?hl=en.
>
>
--

You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com <mailto:livecycle%2Bunsu...@googlegroups.com> .

For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
 

---
Adobe LiveCycle Enterprise Architecture - http://www.adobe.com/products/livecycle/
TV Show - http://tv.adobe.com/show/duanes-world/
Blog – http://technoracle.blogspot.com/
Music – http://22ndcenturyofficial.com/
Twitter – http://twitter.com/duanechaos/
“That’s all I have time for”

Duane Nickull

unread,
Feb 18, 2011, 1:35:17 PM2/18/11
to Adobe LiveCycle Developers
This doesn’t work on Mac.

> > For more options, visit this group at
> >http://groups.google.com/group/livecycle?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com <mailto:livecycle%2Bunsu...@googlegroups.com> .

For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
 

Falor, Brian

unread,
Feb 18, 2011, 1:41:36 PM2/18/11
to live...@googlegroups.com

Maybe try this in your “Insert Bullet” button click event:

 

if (TextField.rawValue == null)

    {

    TextField.rawValue = " •  ";

    }

else {

    TextField.rawValue += "•  ";

CONFIDENTIAL NOTICE: This e-mail transmission (and the attachments, if any, accompanying it) may contain confidential information. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any forwarding, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

--

You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.

To unsubscribe from this group, send email to livecycle+...@googlegroups.com.

Duane Nickull

unread,
Feb 18, 2011, 1:48:27 PM2/18/11
to live...@googlegroups.com
I got it to wortk with this

 form1.#subform[0].Button2::click - (JavaScript, client)
this.resolveNode("RichText").rawValue = this.resolveNode("RichText").rawValue + "•";

See attached PDF
AddBullet.xdp

Duane Nickull

unread,
Feb 18, 2011, 1:49:55 PM2/18/11
to live...@googlegroups.com
See attached for result




********
22nd Century (my band) - http://22ndcenturyofficial.com/
Twitter - @duanechaos
********



Duane Nickull

unread,
Feb 18, 2011, 2:04:02 PM2/18/11
to Adobe LiveCycle Developers
It makes a textbook definition of a great online forum is when you have multiple people offering solutions to your problems!

;-p

> > For more options, visit this group at
> >http://groups.google.com/group/livecycle?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com <mailto:livecycle%2Bunsu...@googlegroups.com> .

For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.
 

Falor, Brian

unread,
Feb 18, 2011, 2:05:28 PM2/18/11
to live...@googlegroups.com

See it all the time here.  Great forum!

 

From: live...@googlegroups.com [mailto:live...@googlegroups.com] On Behalf Of Duane Nickull


Sent: Friday, February 18, 2011 11:04 AM
To: Adobe LiveCycle Developers

CONFIDENTIAL NOTICE: This e-mail transmission (and the attachments, if any, accompanying it) may contain confidential information. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any forwarding, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

--

You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.

To unsubscribe from this group, send email to livecycle+...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages