Click or drag to resize
Pdf Library for .NET

PdfToTextGetHtml Method

Returns the document text wrapped in a minimal HTML document — the document metadata as <meta> tags in the head, and the extracted text inside a <pre> block. The result contains only text; no images are extracted.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public string GetHtml()

Return Value

String
The document text as an HTML string.
Remarks
The pages processed are given by StartPageNumber / EndPageNumber; the <meta charset> value is HtmlCharset.
See Also