hi,
i wnat Extra large images to be fit on one page, the problem is that there is only a little peace of that image to see ,not the entire one.
this is my code:
PdfPage page = doc.Pages.Add();
PdfBitmap image = new PdfBitmap(item);
SizeF size = new SizeF(image.Width, image.Height);
//Need to set page size here, if not it will use default size.
doc.PageSettings.Size = size;
if (size.Width > size.Height)
doc.PageSettings.Orientation = PdfPageOrientation.Landscape;
//PdfTemplate template = page.CreateTemplate();
//PdfGraphics g = page.Graphics;
//g.DrawPdfTemplate(template, new PointF(0, 0), new SizeF(page.GetClientSize().Width, page.GetClientSize().Height));
PdfLayoutFormat format = new PdfLayoutFormat
{
Break = PdfLayoutBreakType.FitPage,
Layout = PdfLayoutType.OnePage
};
image.Draw(page, 0, 0);
tank you