1
我正在用表格設計我的pdf,因此pdf單元格接收短語而不是段落。Itext5,突出顯示短語中的一個單詞
我有這樣的一句話:
Phrase subject = new Phrase("Subject: " + NEWLINE + investigation.Title);
,我想這個詞「主題」將與不同勢的字體,我該如何更改一個字的字體在一個短語
我要強調想做到這一點somehing這樣的:
Chunk chunk = new Chunk("Conclusions", titleFont);
Chapter chapter = new Chapter(new Paragraph(chunk), 1);
chapter.NumberDepth = (0);
chapter.Add(new Paragraph(investigation.InvestigationResult, textFont));
doc.Add(chapter);
但在一個短語