IHTMLExtractor InterfaceByteScout PDF To HTML SDK
Defines the PDF to HTML extractor interface.

Namespace:  Bytescout.PDF2HTML
Assembly:  Bytescout.PDF2HTML (in Bytescout.PDF2HTML.dll) Version: 13.4.1.4802-master
Syntax

public interface IHTMLExtractor

The IHTMLExtractor type exposes the following members.

Properties

  NameDescription
Public propertyAddFontStyleHTMLTagsToText
Controls if HTML output adds font style information to text objects. Default is true. Set to false to output text objects as plain text objects without font size and style defined.
Public propertyAdditionalCssStyles
Sets additional CSS styles. Works only with HTMLWithCSS (see ExtractionMode). Example: "#canvas { zoom: 50%; }" - scale the div that contains all generated HTML pages by 50%.
Public propertyColumnDetectionMode
Column detection mode.
Public propertyControlsAsText
Sets whether to render form controls to plain text objects. Default is false. Set to true to display controls as text.
Public propertyDetectHyperLinks
Sets whether to detect URLs and present them as clickable links. Default is true.
Public propertyDetectLinesInsteadOfParagraphs
Gets or sets a value indicating whether to detect single lines or multiple lines of text.
Public propertyDetectNewColumnBySpacesRatio
Table columns detection option: defines space between columns to detect text as a new column.
Public propertyDetectStrikeoutTextStyle
Get or sets whether to detect the "strikeout" text style. Default is false.
Public propertyDetectUnderlineTextStyle
Get or sets whether to detect the "underline" text style. Default is false.
Public propertyExtractAnnotations
Gets or sets a value indicating whether to extract text from annotation objects. Default is true.
Public propertyExtractColumnByColumn
Gets or sets a value indicating whether to extract text column by column or use the visual layout of the text while extracting. False by default. If you are processing PDF newspapers with text columns, set this property to True so you get column by column instead of line by line.
Public propertyExtractInvisibleText
Gets or sets a value indicating whether to extract invisible text from PDF document.
Public propertyExtractionMode
Extraction mode: plain HTML or formatted HTML with CSS.
Public propertyExtractShadowLikeText
Gets or sets a value indicating whether to include characters used to create "shadow" effect (when the same character appears with some offset) from PDF document. True by default (includes all encoded characters disregarding their real appearance).
Public propertyFontSubstitutionMap
Map to substitute fonts. You can add new mappings to match a font to another font in output HTML code.
Public propertyHighPrecisionTextPositioning
Sets whether to use the high precision text positioning. Every symbol will be positioned individually providing better look but reduce HTML parsing convenience.
Public propertyKeepOriginalFontNames
By default HTMLExtractor replaces names of embedded fonts with standard (or "descendant") fonts similar by metrics and typeface. This is because embedded fonts differ from fonts installed into your system or absent there at all. Set this property to true if you want to keep the original font names.
Public propertyLineGroupingMode
Sets how lines are grouped into paragraphs. Default: no lines grouping is performed.
Public propertyOptimizeImages
Gets or sets optimization of images. Default is true.
Public propertyOutputImageFormat
Defines format for output images. Default is PNG (with transparency). If you do NOT need the transparency support and want to have smaller image sizes (so the page will load faster) then set this property to OutputImageFormat.JPEG.
Public propertyOutputPageWidth
Set or get width (in pixels) of the output pages rendered into HTML. Default output width is 1024 (height is calculated and used according to the original pdf pages ratio)
Public propertyPreserveFormattingOnTextExtraction
Gets or sets a value indicating whether to preserve the text formatting on the extraction.
Public propertyRemoveHyphenation
Gets or sets a value indicating whether to automatically remove hyphenations in end of lines (works when Unwrap is true).
Public propertySaveImages
Get or sets the image handling (skip, embed, or save to outer file).
Public propertyTrimSpaces
Gets or sets a value indicating whether to remove trailing and ending spaces from table cell values.
Public propertyUnwrap
Gets or sets a value indicating whether to unwrap lines into single lines or not (especially could be useful in the column layout mode - see ExtractColumnByColumn property). Default is False.
Top
Methods

  NameDescription
Public methodDisposePage
Disposes the page object. Uses this method carefully to destroy the page object that should not be used further. Useful to free allocated memory when processing large PDF documents.
Public methodGetHTML
Extracts HTML from the entire document.
Public methodGetHTML(IListInt32)
Extracts HTML from specified pages.
Public methodGetHTML(String)
Extracts HTML from specified page ranges.
Public methodGetHTML(Int32, Int32)
Extracts HTML from specified page range.
Public methodGetHTMLPage
Extracts HTML from specified document page.
Public methodGetOutputHTMLPageHeight
Get height of the output page rendered in HTML format.
Public methodGetPageHeight
Height of the PDF page (in pdf units).
Public methodGetPageWidth
Width of the PDF page (in pdf units).
Public methodSaveHtmlPageToFile
Extracts HTML from specified page to stream.
Public methodSaveHtmlPageToStream
Extracts HTML from specified page to stream.
Public methodSaveHtmlToFile(String)
Extracts HTML from the entire document to file.
Public methodSaveHtmlToFile(IListInt32, String)
Extracts HTML from specified pages to file.
Public methodSaveHtmlToFile(String, String)
Extracts HTML from specified page ranges to file.
Public methodSaveHtmlToFile(Int32, Int32, String)
Extracts HTML from specified page range to file.
Public methodSaveHtmlToStream(Stream)
Extracts HTML from the entire document to stream.
Public methodSaveHtmlToStream(IListInt32, Stream)
Extracts HTML from specified pages to stream.
Public methodSaveHtmlToStream(String, Stream)
Extracts HTML from specified page ranges to stream.
Public methodSaveHtmlToStream(Int32, Int32, Stream)
Extracts HTML from specified page range to stream.
Top
See Also

Reference