Welcome Guest Search | Active Topics | Sign In | Register

[EO.PDF] Bold word in the middle of a sentence Options
Randy Hodges
Posted: Wednesday, June 24, 2015 4:47:32 PM
Rank: Newbie
Groups: Member

Joined: 6/22/2015
Posts: 3
I am using the Acm objects to build a PDF and I need to get a few bold words in the middle of a line of text.

What is the best way to get one word in a sentence to be bold. I don't want the entire line bold, just one word?

Here is what I am doing now:
Code: C#
AcmParagraph tagLine = new AcmParagraph();
tagLine.Style.FontSize = 10.5f;
tagLine.Style.Margin = new AcmPadding( 0, 0.1f, 0, 0 );
tagLine.Children.Add( new AcmText("We put the ") );
tagLine.Children.Add( new AcmBold( new AcmText("work") ) );
tagLine.Children.Add( new AcmText(" in ") );
tagLine.Children.Add( new AcmBold( new AcmText("work trucks.") ) );
eo_support
Posted: Wednesday, June 24, 2015 10:24:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Your code is the correct way to do this. You can also use HTML to PDF feature. That one is much more powerful and easier to use, but it is also slower than ACM objects.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.