com.aspose.html.rendering

Class Renderer<TDocument>

  • java.lang.Object
    • com.aspose.html.rendering.RendererBase
      • com.aspose.html.rendering.Renderer<TDocument>
  • All Implemented Interfaces:
    com.aspose.html.internal.ms.System.IDisposable
    Direct Known Subclasses:
    EpubRenderer, HtmlRenderer, MhtmlRenderer, SvgRenderer


    public abstract class Renderer<TDocument>
    extends com.aspose.html.rendering.RendererBase

    Represents an abstract class for the all renderers.

    TDocument: The type of the document.

    See Also:
    IDisposable
    • Constructor Detail

      • Renderer

        public Renderer()
    • Method Detail

      • render

        public void render(IDevice device,
                           TDocument document)

        Defines method for rendering TDocument into specified IDevice.

        Parameters:
        device - The output device.
        document - The document.
      • render

        public void render(IDevice device,
                           TDocument document,
                           com.aspose.html.internal.ms.System.TimeSpan timeout)

        Defines method for rendering TDocument into specified 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.

        Parameters:
        device - The output device.
        document - The document.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
      • render

        public void render(IDevice device,
                           TDocument document,
                           int timeout)

        Defines method for rendering TDocument into specified 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.

        Parameters:
        device - The output device.
        document - The document.
        timeout - A number of milliseconds that represents the number of milliseconds to wait, or -1 millisecond to wait indefinitely.
      • render

        public void render(IDevice device,
                           TDocument[] documents)

        Defines method for rendering multiple TDocuments into specific IDevice.

        Parameters:
        device - The output device.
        documents - The documents to render.
      • render

        public void render(IDevice device,
                           int timeout,
                           TDocument[] documents)

        Defines method for rendering multiple TDocuments into specific 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.

        Parameters:
        device - The output device.
        timeout - A number of milliseconds that represents the number of milliseconds to wait, or -1 millisecond to wait indefinitely.
        documents - The documents to render.
      • render

        public abstract void render(IDevice device,
                                    com.aspose.html.internal.ms.System.TimeSpan timeout,
                                    TDocument[] documents)

        Defines method for rendering multiple TDocuments into specific 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.

        Parameters:
        device - The output device.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
        documents - The documents to render.
      • render

        public abstract void render(IDevice device,
                                    com.aspose.html.internal.ms.System.TimeSpan timeout,
                                    TDocument document)

        Defines method for rendering TDocument into specific 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.

        Parameters:
        device - The output device.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
        document - The documents to render.