I’m using iTextSharp to generate pdfs in my .net application.
I’m stuck at a small yet very simple place that I can’t seem to figure out.
I’m generating table using PdfPTable and adding cells to them.
In one of these cells I want add say about 3 tabs in it.
I have tried following 2 code but not giving me desired output.
table.AddCell(new Phrase("\t\tDate:", sampleFont)); //Date:
table.AddCell(Chunk.TAB + Chunk.TAB + new Phrase("Date:", sampleFont)); //TABTABDate:
Unluckily,
iTextSharpdoes not supportTab, but you can useParagraphParagraph.IndentationLeftinstead.You also can use
cell.PaddingLeftfor table cell.