If you tried img.SetAbsolutePosition(10000f,10000f);, then your image comes out of the visible area of ββthe PDF. You create yours Documentas follows:
Document document = new Document(PageSize.A4, 188f, 88f, 5f, 10f);
This means that the page size is 595 x 842 user units. Use x = 10000and y = 10000does not fit inside the 595 x 842 rectangle.
:
img.SetAbsolutePosition(0,0);
, .
, iText . . :
, SetAbsolutePosition().
Update:
. . . -.
:
. ?, showTextAligned():
ColumnText.showTextAligned(canvas, Element.ALIGN_CENTER,
new Phrase("Some text"), 100, 100, 0);
, , , , canvas.
:
?
ColumnText ct = new ColumnText(cb);
ct.SetSimpleColumn(rect);
ct.AddElement(new Paragraph("This is the text added in the rectangle"));
ct.Go();
, , , cb rect.