I created a pdf file with graphics on it, now I'm trying to add a table for this graphics. My problem is that the table is above the graphics, how can I indicate the location / position where I want my table to be placed in a pdf document?
This is my code.
docl.Open();
docl.Add(new Paragraph("My first PDF file"));
PdfContentByte cb = writer.DirectContent;
cb.RoundRectangle( 20f, 745f, 200f, 35f, 10f);
cb.RoundRectangle(235f, 745f, 35f, 35f, 10f);
cb.RoundRectangle(280f, 745f, 105f, 35f, 10f);
cb.RoundRectangle(390f, 745f, 105f, 35f, 10f);
cb.RoundRectangle(500f, 745f, 105f, 35f, 10f);
cb.RoundRectangle(20f, 660f, 200f, 80f, 10f);
cb.RoundRectangle(235f, 700f, 35f, 35f, 10f);
cb.RoundRectangle(235f, 660f, 35f, 35f, 10f);
cb.RoundRectangle(280f, 700f, 215f, 35f, 10f);
cb.RoundRectangle(500f, 700f, 105f, 35f, 10f);
cb.RoundRectangle(280f, 660f, 160f, 35f, 10f);
cb.RoundRectangle(445f, 660f, 35f, 35f, 10f);
cb.RoundRectangle(506f, 660f, 90f, 35f, 10f);
cb.RoundRectangle(20f, 600f, 35f, 35f, 10f);
cb.RoundRectangle(60f, 600f, 35f, 35f, 10f);
cb.RoundRectangle(100f, 600f, 70f, 35f, 10f);
cb.RoundRectangle(175f, 600f, 70f, 35f, 10f);
cb.Stroke();
PdfPTable table = new PdfPTable(2);
table.HorizontalAlignment = 0;
table.SetTotalWidth(new float[] { 800, 200 });
PdfPCell cell = new PdfPCell(new Phrase("EARNINGS"));
cell.Colspan = 2;
cell.HorizontalAlignment = 1;
table.AddCell(cell);
table.AddCell("Description");
table.AddCell("Amount");
I used this line to indicate the position of the graphics in the document: // position y, position x, length, height, suspense cb.RoundRectangle (20f, 745f, 200f, 35f, 10f);

I want to place a table under the graphics.