Method AddImagePage
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
AddImagePage(PdfImage, ImagePageOptions?)
Appends a page that shows one image, sized and placed as options describe.
public PdfPage AddImagePage(PdfImage image, ImagePageOptions? options = null)
Parameters
imagePdfImageThe image. Its orientation (EXIF or TIFF) is applied.
optionsImagePageOptionsPage size, margin and fit; null makes the page the size of the image.
Returns
- PdfPage
The new page, which can be drawn on like any other.
Remarks
Without a page size, a page larger than PDF allows (MaxDimension points, 200 inches) is scaled down to fit, keeping the aspect ratio.
Exceptions
- ArgumentException
The margins leave no room for the image on the page.