@effortlessmotion/pdf-to-md
    Preparing search index...

    Function renderPageToPNG

    • Render one page of a PDF to a PNG buffer at the given DPI. Opens and closes the document itself — for more than one page from the same PDF, use openPdfForRender + renderLoadedPage instead.

      Parameters

      • pdfPath: string

        path to the PDF file

      • pageNum: number

        1-based page number

      • dpi: number

        PDF user space is 72 units/inch, so scale = dpi / 72

      Returns Promise<RenderPageResult>