PdfMergeAddImagePage(String, PdfPageSize, PdfPageOrientation) Method
Adds a page displaying an image from a file. The page has the size of the image
when no page size is given, otherwise the image is fitted in the page and centered
Namespace: EvoPdf.NextAssembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
public int AddImagePage(
string imagePath,
PdfPageSize pageSize = null,
PdfPageOrientation pageOrientation = PdfPageOrientation.Portrait
)
- imagePath String
- The path of the image file
- pageSize PdfPageSize (Optional)
- The size of the page, or null for a page with the size of the image
- pageOrientation PdfPageOrientation (Optional)
- The orientation of the page
Int32The 1-based number of the added page in the merged document