From 6cf5cfa6195e475b9f1c62bd050f0a7e4018096e Mon Sep 17 00:00:00 2001 From: Jose Berrocal Date: Thu, 16 Nov 2017 14:32:21 -0600 Subject: [PATCH] Add missing property and constructor This attemp to add: - Property **disableTextLayer** - Constructor function for **PDFSinglePageViewer** --- types/pdfjs-dist/index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/types/pdfjs-dist/index.d.ts b/types/pdfjs-dist/index.d.ts index a40c612d5a..f72d70f44e 100644 --- a/types/pdfjs-dist/index.d.ts +++ b/types/pdfjs-dist/index.d.ts @@ -407,6 +407,12 @@ declare namespace PDF { * in browsers which support the fullscreen API. */ disableFullscreen: boolean; + + /** + * Disable the text layer of PDF when used PDF.js renders a canvas instead of div elements + * + */ + disableTextLayer: boolean; /** * Enables CSS only zooming. @@ -475,5 +481,11 @@ declare namespace PDF { : PDFPromise; PDFViewer(params: PDFViewerParams): void; + /** + * yet another viewer, this will render only one page at the time, reducing rendering time + * very important for mobile development + * @params {PDFViewerParams} + */ + PDFSinglePageViewer(params: PDFViewerParams): void; } }