PdfDocumentAddHtmlImage Method

Renders HTML content as an image in the document: the HTML is converted to an image with the converter of the element and the image is drawn from the position given by the element in the current page. When the ContinueOnNextPage property of the element is true, the default, 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. The elements added after this call go to that page, below LastPageRectangle

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
C#
public PdfImageRenderInfo AddHtmlImage(
	PdfHtmlImageElement htmlImageElement
)

Parameters

htmlImageElement  PdfHtmlImageElement
The HTML content to render as an image

Return Value

PdfImageRenderInfo
A PdfImageRenderInfo object describing the pages and the areas where the image was drawn

Exceptions

Exception Thrown if the HTML cannot be converted or the image cannot be added to the PDF document

See Also