Skip to content

Commit 81ba62b

Browse files
authored
Merge pull request #13 from mattpmoreno/patch-1
adding PdfSharp compress endpoint
2 parents bd05366 + fadcd95 commit 81ba62b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ module.exports = class Api2Pdf {
8181
payload['urls'] = urls
8282
return this._makeRequest("/pdfsharp/merge", payload)
8383
}
84+
85+
pdfsharpCompress(url, options = null) {
86+
var payload = this._createBaseOptions(options)
87+
payload['url'] = url
88+
return this._makeRequest("/pdfsharp/compress", payload)
89+
}
8490

8591
pdfsharpAddBookmarks(url, bookmarks, options = null) {
8692
var payload = this._createBaseOptions(options)

0 commit comments

Comments
 (0)