UNPKG

@lillallol/outline-pdf

Version:

High level API to add outline to a pdf without any dependency on other programming languages. Works in both browser and node.

5 lines (4 loc) 206 B
import type { PDFDocument, PDFPageLeaf as _PDFPageLeaf, PDFRef } from "pdf-lib"; export declare function getPageRefsFactory(_: { PDFPageLeaf: typeof _PDFPageLeaf; }): (pdfDoc: PDFDocument) => PDFRef[];