From 04fa4a6a616a7aae8aae9b220141b0ce90fb0509 Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Sun, 16 Dec 2018 21:07:21 +0200 Subject: [PATCH] pdfmake: added TDocumentDefinitions.compress --- types/pdfmake/index.d.ts | 1 + types/pdfmake/pdfmake-tests.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/types/pdfmake/index.d.ts b/types/pdfmake/index.d.ts index a812611400..8ec939a588 100644 --- a/types/pdfmake/index.d.ts +++ b/types/pdfmake/index.d.ts @@ -172,6 +172,7 @@ declare module 'pdfmake/build/pdfmake' { interface TDocumentDefinitions { info?: TDocumentInformation; + compress?: boolean; header?: TDocumentHeaderFooterFunction; footer?: TDocumentHeaderFooterFunction; content: string | Content; diff --git a/types/pdfmake/pdfmake-tests.ts b/types/pdfmake/pdfmake-tests.ts index 1913e3fe8a..2378fd5700 100644 --- a/types/pdfmake/pdfmake-tests.ts +++ b/types/pdfmake/pdfmake-tests.ts @@ -1316,6 +1316,10 @@ const definitions = [ images: { building: 'data:image/gif;base64,...' } + }, + { + compress: false, + content: ['This document does not use compression'] } ];