Image scaling in iTextSharp

I'm having trouble scaling the image I'm pasting. I have to do something wrong, because it does not change at all, no matter what I do. This is the code that I have at the moment, but it does not seem to work. The image is inserted perfectly, it just does not scale, no matter what values ​​I try to execute.

Any obvious things I'm doing wrong? Any common things people do wrong? I work in C #, but I assume that the syntax is the same (more or less) in all languages.

    Image imgSpine = Image.GetInstance(strSpine);
    imgSpine.ScaleAbsolute(2, 55);
    SpineCell.Image = imgSpine;

    SpineCell.Image.Border = Rectangle.NO_BORDER;
    SpineCell.VerticalAlignment = Element.ALIGN_TOP;
    SpineCell.HorizontalAlignment = Element.ALIGN_LEFT;

    pTable.AddCell(SpineCell);
+1
source share
1 answer

, cell.Image , . Chunk Element, Image.

call.Image PdfPTable.TEXTCANVAS PdfPTable, Z.

:

  • Chunk.
  • Cell .

1, , .

+3

All Articles