Azure Connectors Node.js SDK
    Preparing search index...

    Interface HtmlToPdfInput

    HTML to PDF

    interface HtmlToPdfInput {
        async?: boolean;
        expiration?: number;
        footer?: string;
        header?: string;
        html: string;
        margins?: string;
        name?: string;
        orientation?: string;
        paperSize?: string;
        printBackground?: boolean;
        profiles?: string;
    }
    Index
    async?: boolean

    Set to true for long processes to run in the background, API will then return a jobId which you can use with JobCheck endpoint to check the status of the process and retrieve the output while you can proceed with other tasks without waiting for this process to finish.

    expiration?: number

    Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour), After this specified duration, any generated output file(s) will be automatically deleted from PDF.co temporary files storage. The maximum duration for link expiration varies based on your current subscription plan.

    footer?: string

    Set to HTML for footer to be applied on every page at the bottom.

    header?: string

    Set to HTML for header to be applied on every page at the header.

    html: string

    Input HTML code to be converted.

    margins?: string

    Override default margins with custom values (the order is top right bottom left). You can als set all margins: 10px, 5mm, 5in for all sides.

    name?: string

    Base file name for new PDF files.

    orientation?: string

    PDF page orientation.

    paperSize?: string

    Select PDF paper size. Can be Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6 or a custom size. Custom size can be set in px (pixels), mm or in (inches) with width and height separated by space like this: 200 300, 200px 300px, 200mm 300mm, 20cm 30cm or 6in 8in.

    printBackground?: boolean

    Enable or disable printing of document background

    profiles?: string

    This parameter can be used to set additional configurations for fine-tuning and to enable more options. Visit PDF.co knowledgebase (https://developer.pdf.co/api/profiles/index.html) for profile examples and more.