Skip to content

Commit 877b1f5

Browse files
committed
encryption support standard security handler
1 parent 925d5da commit 877b1f5

File tree

8 files changed

+557
-292
lines changed

8 files changed

+557
-292
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ I also wanted to have my own swiss army knife for PDFs written entirely in [Go](
4040

4141
### Usage
4242

43-
pdfcpu validate [-verbose] [-mode strict|relaxed] inFile
43+
pdfcpu validate [-verbose] [-mode strict|relaxed] [-upw userpw] [-opw ownerpw] inFile
4444

45-
pdfcpu optimize [-verbose] [-stats csvFile] inFile [outFile]
45+
pdfcpu optimize [-verbose] [-stats csvFile] [-upw userpw] [-opw ownerpw] inFile [outFile]
4646

47-
pdfcpu split [-verbose] inFile outDir
47+
pdfcpu split [-verbose] [-upw userpw] [-opw ownerpw] inFile outDir
4848

4949
pdfcpu merge [-verbose] outFile inFile1 inFile2 ...
5050

51-
pdfcpu extract [-verbose] -mode image|font|content|page [-pages pageSelection] inFile outDir
51+
pdfcpu extract [-verbose] -mode image|font|content|page [-pages pageSelection] [-upw userpw] [-opw ownerpw] inFile outDir
5252

53-
pdfcpu trim [-verbose] -pages pageSelection inFile outFile
53+
pdfcpu trim [-verbose] -pages pageSelection [-upw userpw] [-opw ownerpw] inFile outFile
5454

5555
[Please read the documentation ](https://godoc.org/github.com/hhrutter/pdfcpu)
5656

5757

5858
### Status
59-
Version: 0.0.6
59+
Version: 0.0.7
6060

6161
The extraction code for font files and images is experimental and serves as proof of concept only.
6262

@@ -77,7 +77,7 @@ PDF files that will increase pdfcpu's coverage are very much welcome.
7777

7878

7979
### Disclaimer
80-
Usage of pdfcpu assumes you know about and respect all copyrights of any PDF content you may be processing. This applies to the PDF files as such, their content and in particular all embedded resources like font files or images. As of now encrypted PDF files are not supported. Credit goes to [Renee French](https://instagram.com/reneefrench) for creating our beloved Gopher.
80+
Usage of pdfcpu assumes you know about and respect all copyrights of any PDF content you may be processing. This applies to the PDF files as such, their content and in particular all embedded resources like font files or images. Credit goes to [Renee French](https://instagram.com/reneefrench) for creating our beloved Gopher.
8181

8282

8383
### License

cmd/pdfcpu/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"strings"
99

1010
"github.com/hhrutter/pdfcpu"
11+
"github.com/hhrutter/pdfcpu/crypto"
1112
"github.com/hhrutter/pdfcpu/extract"
1213
"github.com/hhrutter/pdfcpu/merge"
1314
"github.com/hhrutter/pdfcpu/optimize"
@@ -220,6 +221,7 @@ func help() {
220221
func setupLogging(verbose bool) {
221222

222223
types.Verbose(verbose)
224+
crypto.Verbose(verbose)
223225
read.Verbose(verbose)
224226
validate.Verbose(verbose)
225227
optimize.Verbose(verbose)

0 commit comments

Comments
 (0)