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

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
C#
public int AddImagePage(
	string imagePath,
	PdfPageSize pageSize = null,
	PdfPageOrientation pageOrientation = PdfPageOrientation.Portrait
)

Parameters

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

Return Value

Int32
The 1-based number of the added page in the merged document

See Also