DataWeb
Search Results for

    Show / Hide Table of Contents

    Interface IIronPdfService

    Interface for PDF conversion services using IronPDF library.

    Namespace: DataWeb.Reporting.IronPdf
    Assembly: DataWeb.Reporting.IronPdf.dll
    Syntax
    public interface IIronPdfService

    Properties

    Name

    Gets the name of the PDF service provider.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string

    Methods

    HtmlToStreamAsync(string, PdfOptions, CancellationToken)

    Converts HTML content to a PDF stream asynchronously.

    Declaration
    Task<Stream> HtmlToStreamAsync(string html, PdfOptions options = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string html

    The HTML content to convert.

    PdfOptions options

    Optional PDF rendering options. If null, default options are used.

    CancellationToken cancellationToken

    Token to cancel the asynchronous operation.

    Returns
    Type Description
    Task<Stream>

    A stream containing the generated PDF document.

    In this article
    Back to top Generated by DocFX