From 7e82ac91a77b9653841260030144468bbc742e3d Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Fri, 4 Feb 2022 11:14:02 +0100 Subject: [PATCH] pdfcpu --- index.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 25636d6..4802aee 100644 --- a/index.d.ts +++ b/index.d.ts @@ -487,14 +487,16 @@ interface PdfPackage { * @returns []byte of new pdf data */ cpu( - command: "watermark", + command: "watermark" | "stamp", pdfData: any, options: { - description: { + pages?: (string | number)[] + description?: { [key: string]: number | string } - mode: "image" - bytes: any // []byte of watermark image + mode?: "image" | "pdf" + bytes?: any // []byte of watermark image + file?: string // file for pdf watermark } ): any }