Click or drag to resize

PdfConverterRenderElementSelector Property

Use this property to convert only the part of the page matched by this CSS selector.

Namespace: ExpertPdf.HtmlToPdf
Assembly: ephtmltopdf (in ephtmltopdf.dll) Version: 22.0.0
Syntax
public string RenderElementSelector { get; set; }

Property Value

String
Remarks
Any selector the rendering engine understands - "#content", ".infobox", "table.data tbody". The element is lifted out of the page and rendered on its own. When both are set, this property wins over RenderElementId.

Note: Honored by the Blink and Chromium rendering engines. The WebKit engines match an element id themselves and cannot take a selector: with those, use RenderElementId, which every engine honors.

See Also