Hi Jeffrey,
Thank you for your interest in Essential PDF.
We can bold the text in two ways:
1.In Grid model it can be done as follows:
CS:
//Sets the Font style
Font arialFont=new Font("Arial",10,FontStyle.Bold);
IPDFFont pdfFont = doc.Fonts.Add(arialFont);
VB:
''Sets the Font style
Dim arialFont As Font = New Font("Arial",10,FontStyle.Bold)
Dim pdfFont As IPDFFont = doc.Fonts.Add(arialFont)
Here is a sample for your reference:
TextFormatting_gridmodel.zip
2. In Flow model it can be done as follows.
CS:
//Sets the text as bold
textRange = paragraph.AppendText( "Bold Text_Bold Text" );
textRange.CharacterFormat.Bold = true;
VB:
''Sets the text as bold
textRange = paragraph.AppendText("Bold Text_Bold Text ")
textRange.CharacterFormat.Bold = True
Here is a sample for your reference.
TextFormatting.zip
Please take a look into the samples and let me know if you have any other queries.
Regards,
Dhivya.