You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cli.ts
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ type CliOptions = {
9
9
'--resolution'?: Resolution;
10
10
'--compatibilityLevel'?: string;
11
11
'--gsModule'?: string;
12
+
'--pdfPassword'?: string;
13
+
'--removePasswordAfterCompression'?: boolean;
12
14
};
13
15
14
16
(async()=>{
@@ -33,7 +35,7 @@ type CliOptions = {
33
35
process.argv.slice(2).length===0
34
36
){
35
37
returnconsole.log(
36
-
'USE: npx compress-pdf\n--file [PDF_FILE]\n--output [COMPRESSED_PDF_FILE]\n--resolution [ebook/printer/screen/prepress]\n--compatibilityLevel [NUMBER] The compatibility pdf level\n--gsModule [FILE PATH] The ghostscript binary path. Ex: /usr/local/bin/gs'
38
+
'USE: npx compress-pdf\n--file [PDF_FILE]\n--output [COMPRESSED_PDF_FILE]\n--resolution [ebook/printer/screen/prepress]\n--compatibilityLevel [NUMBER] The compatibility pdf level\n--gsModule [FILE PATH] The ghostscript binary path\n--pdfPassword The pdf password\n--removePasswordAfterCompression [BOOLEAN] Remove pdf password after compression\nEx: /usr/local/bin/gs'
0 commit comments