@pixdif/pdf-parser
Version:
17 lines (16 loc) • 621 B
TypeScript
import { Outline, type OutlineProperties } from '@pixdif/parser';
import type { PDFDocumentProxy } from '../util/pdfjs.js';
import PdfPage from './PdfPage.js';
export interface PdfOutlineProperties extends OutlineProperties {
title: string;
offset: number;
limit: number;
}
export default class PdfOutline extends Outline {
protected readonly document: PDFDocumentProxy;
protected readonly offset: number;
protected readonly limit: number;
constructor(document: PDFDocumentProxy, props: PdfOutlineProperties);
getPageNum(): Promise<number>;
getPage(index: number): Promise<PdfPage>;
}