Click or drag to resize
Pdf Library for .NET

PdfHtmlSectionVisibleWebElementSelector Property

Convert only the part of the page matched by this CSS selector; the rest is ignored.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public string VisibleWebElementSelector { get; set; }

Property Value

String
Remarks
Any selector the browser understands - "#content", ".infobox", "table.wikitable tbody". The element is lifted out of the page and rendered on its own: the page width is kept and the height trimmed to the element, so a tall one still paginates. Matching nothing, or an element with no size, fails the conversion rather than quietly producing the whole page.
See Also