HtmlViewOptionsForExternalResources Method (CreatePageStream, CreateResourceStream, CreateResourceUrl)
Initializes new instance of HtmlViewOptions class for rendering into HTML with external resources.

Namespace: GroupDocs.Viewer.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 20.6.1
Syntax
public static HtmlViewOptions ForExternalResources(
	CreatePageStream createPageStream,
	CreateResourceStream createResourceStream,
	CreateResourceUrl createResourceUrl
)

Parameters

createPageStream
Type: GroupDocs.Viewer.InterfacesCreatePageStream
The method that instantiates stream used to write output page data.
createResourceStream
Type: GroupDocs.Viewer.InterfacesCreateResourceStream
The method that releases stream created by createPageStream method.
createResourceUrl
Type: GroupDocs.Viewer.InterfacesCreateResourceUrl
The method that creates URL for HTML resource.

Return Value

Type: HtmlViewOptions
New instance of HtmlViewOptions class for rendering into HTML with external resources.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when createPageStream is null.
ArgumentNullExceptionThrown when createResourceStream is null.
ArgumentNullExceptionThrown when createResourceUrl is null.
See Also