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.

10 lines (9 loc) 322 B
import type { PDFDocument, PDFNumber, PDFRef, PDFName as _PDFName, PDFDict as _PDFDict } from "pdf-lib"; export declare function createOutlineDictFactory(_: { PDFName: typeof _PDFName; PDFDict: typeof _PDFDict; }): (doc: PDFDocument, _: { First: PDFRef; Last: PDFRef; Count: PDFNumber; }) => _PDFDict;