v0.3.2
版本发布时间: 2020-01-04 17:14:48
pdfcpu/pdfcpu最新发布版本:v0.8.1(2024-08-31 21:13:37)
Hello!
This release is packed with a couple of new features:
Multi-Stamping
This is an enhancement to pdfcpu's PDF stamp command.
From now on when adding a PDF stamp and no specific stamp page is defined pdfcpu will apply each page of the stamp.pdf one-by-one to the input file and after that it repeatedly uses the last page of stamp.pdf if the input file has more pages. This will allow you to apply corporate designs to your PDFs in one simple step like so:
pdfcpu stamp add -mode pdf stamp.pdf 'rot:0, pos:bl, scale: 1.0 rel' in.pdf out.pdf
If you want to stamp with a specific page of stamp.pdf you need to define this like in stamp.pdf:3
See also #146.
The first release of 2020 also introduces four new commands:
- keywords
- properties
- portfolio
- collect
Manage search keywords
List, add, remove document keywords.
Keywords are also part of pdfcpu info
.
Please also refer to pdfcpu help keywords
.
usage: pdfcpu keywords list [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile
pdfcpu keywords add [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile keyword...
pdfcpu keywords remove [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile [keyword...]
Manage document properties
List, add, remove document properties.
Properties are also part of pdfcpu info
.
Please also refer to pdfcpu help properties
.
usage: pdfcpu properties list [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile
pdfcpu properties add [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile keyValuePair...
pdfcpu properties remove [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile [key...]
Portfolio
List, add, remove, extract portfolio entries.
pdfcpu attachment
remains the command for managing plain attachments, whereas pdfcpu portfolio
manages portfolio entries that will presented as such by Adobe Reader.
In a nutshell the behavior of this command reflects the old attachment
command.
Please also refer to pdfcpu help portfolio
.
See also #112.
usage: pdfcpu portfolio list [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile
pdfcpu portfolio add [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile file[,desc]...
pdfcpu portfolio remove [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile [file...]
pdfcpu portfolio extract [-v(erbose)|vv] [-q(uiet)] [-upw userpw] [-opw ownerpw] inFile outDir [file...]
Collect
Create a custom PDF page sequence.
Pages may appear multiple times in any way you prefer:
pdfcpu collect -pages 5,1-3,1-3 in.pdf out.pdf
Please also refer to pdfcpu help collect
.
usage: pdfcpu collect [-v(erbose)|vv] [-q(uiet)] -pages selectedPages [-upw userpw] [-opw ownerpw] inFile [outFile]
There is also an important change to the insert page command:
Enhanced insert page command
pdfcpu pages insert
now features mode before|after
. mode
defaults to before
.
This will allow you to insert pages at the end of your document:
pdfcpu pages insert -mode after -pages l test.pdf
l
... last page. See also #140,#148
Like always there are also a couple of bug fixes. Thank you so much for using pdfcpu! Have fun! 💚
Changelog
055056b Add collect cmd 683591d Add new cmds: keywords, properties 789c1fd Fix #112 990136b Fix #140 71c52af Fix #143 9f62b17 Fix #144 eb8f480 Fix #146 df75777 Fix #148 623e0df Fix #152 3a5e89f Update README.md
1、 checksums.txt 594B
2、 pdfcpu_0.3.2_Darwin_i386.tar.gz 2.07MB
3、 pdfcpu_0.3.2_Darwin_x86_64.tar.gz 2.18MB
4、 pdfcpu_0.3.2_Linux_i386.tar.gz 1.99MB
5、 pdfcpu_0.3.2_Linux_x86_64.tar.gz 2.1MB
6、 pdfcpu_0.3.2_Windows_i386.tar.gz 2.02MB
7、 pdfcpu_0.3.2_Windows_x86_64.tar.gz 2.13MB