.net - add an image and it span in multiple pages using itextsharp -
How can I add a large image, which is spread across multiple PDF pages using iTextSharp. I have an image which is higher than the PDF page height and due to this, the image is not fully displayed in the PDF page, the last part of the image is missing.
Please check that it resolves your problem:
< Code> Document oDocument = new document (); ODocument.Open (); PDFPTables table = new PDFPTable (1); Table Legislative percentage = 100; PDFPCL C = new PDFPCL (image, true); C.Border = PdfPCell.NO_BORDER; C. Padding = 5; C.Image.ScaleToFit (750f, 750f); / * New line * / table.edsel (c); // & lt; - Add cell to table oDocument.Add (table);I hope that using
PDfPTable will solve your problem.
Comments
Post a Comment