Click here to Skip to main content
15,946,320 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everybody,
I need to create with c# and itextSharp a cell that has an image as a background and above that I need to write a number to it. But I don't get it.


...

But when I see the result, the image is there and the text is not.

What I have tried:

iTextSharp.text.Image fotoTi = iTextSharp.text.Image.GetInstance(AppDomain.CurrentDomain.BaseDirectory + @"\img\Arrows\TI.png");


PdfPTable tbl1;

tbl1 = new PdfPTable(1);
cell = new PdfPCell();
cell.Phrase = new Phrase(rowCalendario["L"].ToString());
cell.AddElement(fotoTF);
tbl1.AddCell(cell);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900