Firstly, I am not so good with C #, and it has been a long time since I worked with it.
I am creating a window shape for a friend who supplies packages. Therefore, I want to transfer its current paper form to .pdf with the iTextSharp library. He still needs to print the form in order to receive the signature of the client, etc.
What I need:
I want the table to have a small heading "Company Name", for example, the text should be slightly smaller than the text input from the window form (richTextBox1)
I am currently using cells and was wondering if I can use 2 different font sizes in one cell?
What I have:
table.AddCell("Static headline" + Chunk.NEWLINE + richTextBox1.Text);
What I want:
var normalFont = FontFactory.GetFont(FontFactory.HELVETICA, 9);
var boldFont = FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 12);
table.AddCell("Static headline", boldFont + Chunk.NEWLINE + richTextBox1.Text, normalFont);
source
share