Please check if this solves your issue:
Document oDocument = new Document();
oDocument.Open();
PdfPTable table = new PdfPTable(1);
table.WidthPercentage = 100;
PdfPCell c = new PdfPCell(image, true);
c.Border = PdfPCell.NO_BORDER;
c.Padding = 5;
c.Image.ScaleToFit(750f,750f); /*The new line*/
table.AddCell(c); // <-- Add the cell to the table
oDocument.Add(table);
I hope using PDfPTable
will probably solve your issue.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…