@types/pdfkit
Advanced tools
+28
-13
@@ -718,2 +718,6 @@ /// <reference types="node" /> | ||
| interface PDFOutline { | ||
| /** | ||
| * The root outline | ||
| */ | ||
| outline: PDFKit.PDFOutline; | ||
| initOutline(): void; | ||
@@ -852,22 +856,33 @@ endOutline(): void; | ||
| addPage(options?: PDFDocumentOptions): PDFDocument; | ||
| continueOnNewPage(options?: PDFDocumentOptions): PDFDocument; | ||
| bufferedPageRange(): { start: number; count: number }; | ||
| switchToPage(n?: number): PDFPage; | ||
| flushPages(): void; | ||
| // See https://opensource.adobe.com/dc-acrobat-sdk-docs/library/pdfmark/pdfmark_Actions.html#view-destinations. | ||
| // If `fitType` is missing, this method wll be invoked with (name, 'XYZ', null, null, null). | ||
| addNamedDestination(name: string): void; | ||
| addNamedDestination(name: string, fitType: "Fit"): void; | ||
| addNamedDestination(name: string, fitType: "FitB"): void; | ||
| addNamedDestination(name: string, fitType: "FitBH", top: number): void; | ||
| addNamedDestination(name: string, fitType: "FitBV", left: number): void; | ||
| addNamedDestination(name: string, fitType: "FitH", top: number): void; | ||
| addNamedDestination(name: string, fitType: "FitR", x1: number, y1: number, x2: number, y2: number): void; | ||
| addNamedDestination(name: string, fitType: "FitV", left: number): void; | ||
| addNamedDestination( | ||
| name: string, | ||
| fitType: "XYZ", | ||
| left: number | null, | ||
| top: number | null, | ||
| zoom: number | null, | ||
| ): void; | ||
| addNamedDestination(name: string, fitType: string, ...args: number[]): void; | ||
| addNamedEmbeddedFile(name: string, ref: PDFKitReference): void; | ||
| addNamedJavaScript(name: string, js: string): void; | ||
| ref(data: {}): PDFKitReference; | ||
| addContent(data: any): PDFDocument; | ||
| /** | ||
| * Deprecated | ||
| */ | ||
| write(fileName: string, fn: any): void; | ||
| /** | ||
| * Deprecated. Throws exception | ||
| */ | ||
| output(fn: any): void; | ||
| end(): void; | ||
| toString(): string; | ||
| /** | ||
| * The root outline | ||
| */ | ||
| outline: PDFOutline; | ||
| } | ||
@@ -874,0 +889,0 @@ } |
| { | ||
| "name": "@types/pdfkit", | ||
| "version": "0.17.0", | ||
| "version": "0.17.1", | ||
| "description": "TypeScript definitions for pdfkit", | ||
@@ -56,4 +56,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdfkit", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "008372dd31229016ee51bb34aa3324764f9c3783b8fcb069921c3a95cc4b673a", | ||
| "typesPublisherContentHash": "643650025b38701ea51d5e1e646ca8280a61a7505e2d65c1e50fc03e9c06f033", | ||
| "typeScriptVersion": "5.1" | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Thu, 10 Jul 2025 12:44:36 GMT | ||
| * Last updated: Sat, 19 Jul 2025 03:47:05 GMT | ||
| * Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ |
38694
3.04%990
1.33%