Hello,
I get tex block with one paragraph. How can I make this text bold?
I tried:
IParagraph paragraph = paragraphs.getElement(0);
ICharParams params = engine.CreateCharParams();
paragraph.GetCharParams(0, params);
params.setIsBold(true);
paragraph.SetCharParams(0, paragraph.getLength(), params, 0,1);
But this doesn't work.
Thank you.
Comments
1 comment
Hello,
Most likely, in your code, you refer to an incorrect paragraph. You may set all text in your document bold using the code below. Please make sure that you run the code after you have performed the document synthesis.
Please sign in to leave a comment.