PdfMergeAddImagePage(Byte, PdfPageSize, PdfPageOrientation) Method

Adds a page displaying an image from a memory buffer. 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(
	byte[] imageData,
	PdfPageSize pageSize = null,
	PdfPageOrientation pageOrientation = PdfPageOrientation.Portrait
)

Parameters

imageData  Byte
The image data
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