PdfDocumentAddImage Method

Adds an image element to the current PDF page. Supports byte array or file path images, scaling and alignment

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.5.0
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