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

    Interface UrlToPdfInput

    URL to PDF

    interface UrlToPdfInput {
        async?: boolean;
        expiration?: number;
        footer?: string;
        header?: string;
        margins?: string;
        orientation?: string;
        paperSize?: string;
        printBackground?: boolean;
        profiles?: string;
        url: 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.

    margins?: string

    Margins to be used in output document. Set to css style margins like 10px, 5mm, 5in for all sides or 5px 5px 5px 5px (the order of margins is top, right, bottom, left).

    orientation?: string

    Output page orientation

    paperSize?: string

    Letter is set by default. 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.

    url: string

    Link to input HTML file or website page to be converted. You can pass link to file from Google Drive, Dropbox or another online file service that can generate shareable links.