PdfDocumentAddImage Method

Adds an image element to the current PDF page. Supports byte array or file path images, scaling and alignment. When the ContinueOnNextPage property of the element is true, an image taller than the space left on the page continues on new pages, inside the margins of the document, and the current page becomes the last page of the image

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
C#
public PdfImageRenderInfo AddImage(
	PdfImageElement imageElement
)

Parameters

imageElement  PdfImageElement
The image element to be rendered

Return Value

PdfImageRenderInfo
A PdfImageRenderInfo object containing page number and position of the rendered image

Exceptions

Exception Thrown if the image cannot be added to the PDF document

See Also