API Reference
Class
HtmlResourcePipeline
Shared resource discovery and policy planning for OfficeIMO HTML workflows.
Inheritance
- Object
- HtmlResourcePipeline
Methods
BuildManifest 2 overloads
public static HtmlResourceManifest BuildManifest(String html, HtmlResourcePipelineOptions options = null) #Returns:
HtmlResourceManifestParses raw HTML and builds a resource manifest.
Parameters
- html System.String
- options OfficeIMO.Html.HtmlResourcePipelineOptions = null
public static HtmlResourceManifest BuildManifest(IHtmlDocument document, HtmlResourcePipelineOptions options = null) #Returns:
HtmlResourceManifestBuilds a resource manifest from a parsed document.
Parameters
- document AngleSharp.Html.Dom.IHtmlDocument
- options OfficeIMO.Html.HtmlResourcePipelineOptions = null
public static HtmlResourceManifest BuildStylesheetManifest(String css, Uri baseUri, HtmlResourcePipelineOptions options = null) #Returns:
HtmlResourceManifestParses an external stylesheet and builds the same policy-aware resource manifest used by the HTML renderer for imports, fonts, and images.
Parameters
- css System.String
- Stylesheet source text.
- baseUri System.Uri
- Absolute URI used to resolve relative stylesheet references.
- options OfficeIMO.Html.HtmlResourcePipelineOptions = null
- Optional resource policy and media-context settings.
Returns
A manifest containing applicable imports and referenced font and image resources.
public static Boolean TryDecodeStylesheet(Byte[] bytes, String contentType, out String css) #Returns:
BooleanAttempts to decode stylesheet bytes using CSS encoding precedence: byte-order mark, transport content-type charset, @charset, then strict UTF-8.
Parameters
- bytes System.Byte[]
- Encoded stylesheet bytes.
- contentType System.String
- Optional transport content type containing a charset.
- css System.String@
- Decoded stylesheet text when successful.
Returns
true when the stylesheet encoding is supported and valid.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object