Class MhtmlRenderer

Class MhtmlRenderer

Namespace: Aspose.Html.Rendering
Assembly: Aspose.HTML.dll (25.2.0)

Represents a MHTML document renderer.

[ComVisible(true)]
public class MhtmlRenderer : Renderer<stream>, IDisposable

Inheritance

objectRendererRenderer<stream>MhtmlRenderer

Implements

IDisposable

Inherited Members

Renderer<stream>.Render(IDevice, Stream), Renderer<stream>.Render(IDevice, Stream, TimeSpan), Renderer<stream>.Render(IDevice, Stream, int), Renderer<stream>.Render(IDevice, params Stream[]), Renderer<stream>.Render(IDevice, int, params Stream[]), Renderer<stream>.Render(IDevice, TimeSpan, params Stream[]), Renderer<stream>.Render(IDevice, CancellationToken, params Stream[]), Renderer.Dispose(), Renderer.Dispose(bool), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

MhtmlRenderer()

public MhtmlRenderer()

Methods

Render(IDevice, TimeSpan, params Stream[])

Renders multiple MHTML documents into specified Aspose.Html.Rendering.IDevice.

public override void Render(IDevice device, TimeSpan timeout, params Stream[] sources)

Parameters

device IDevice

The device.

timeout TimeSpan

A System.TimeSpan that represents the number of milliseconds to wait, or a System.TimeSpan that represents -1 millisecond to wait indefinitely.

sources Stream[]

The MHTML documents to render.

Render(IDevice, CancellationToken, params Stream[])

Defines a method for rendering multiple MHTML documents into a specific Aspose.Html.Rendering.IDevice, using a cancellation token to request cancellation of the operation.

public override void Render(IDevice device, CancellationToken cancellationToken, params Stream[] sources)

Parameters

device IDevice

The output device.

cancellationToken CancellationToken

A System.Threading.CancellationToken to observe while waiting for the task to complete.

sources Stream[]

The MHTML documents to render.

Render(IDevice, Stream, Configuration)

Renders MHTML document into specified Aspose.Html.Rendering.IDevice.

public void Render(IDevice device, Stream source, Configuration configuration)

Parameters

device IDevice

The device.

source Stream

The MHTML document.

configuration Configuration

The configuration.

Render(IDevice, Stream, Configuration, TimeSpan)

Renders MHTML document into specified Aspose.Html.Rendering.IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

public void Render(IDevice device, Stream source, Configuration configuration, TimeSpan timeout)

Parameters

device IDevice

The device.

source Stream

The MHTML document.

configuration Configuration

The configuration.

timeout TimeSpan

A System.TimeSpan that represents the number of milliseconds to wait, or a System.TimeSpan that represents -1 millisecond to wait indefinitely.

Render(IDevice, IList<stream>, Configuration)

Renders multiple MHTML documents into specified Aspose.Html.Rendering.IDevice.

public void Render(IDevice device, IList<stream> sources, Configuration configuration)

Parameters

device IDevice

The device.

sources IList<Stream&gt;

The System.Collections.Generic.IList`1 of MHTML documents to render.

configuration Configuration

The configuration.

Render(IDevice, IList<stream>, Configuration, TimeSpan)

Renders multiple MHTML documents into specified Aspose.Html.Rendering.IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

public void Render(IDevice device, IList<stream> sources, Configuration configuration, TimeSpan timeout)

Parameters

device IDevice

The device.

sources IList<Stream&gt;

The System.Collections.Generic.IList`1 of MHTML documents to render.

configuration Configuration

The configuration.

timeout TimeSpan

A System.TimeSpan that represents the number of milliseconds to wait, or a System.TimeSpan that represents -1 millisecond to wait indefinitely. </stream></stream></stream></stream></stream></stream></stream></stream></stream></stream>