pdfcpu v0.3.3 Release Notes

Release Date: 2020-05-25 // 5 days ago
  • 🚀 This is a maintenance release featuring a couple of extensions for text based watermarking/stamping.
    Have a look at some examples.
    📚 The documentation of said features will be available on pdfcpu.io shortly.

    🍱 Happy coding & Thank you for using pdfcpu 💚

    🔄 Changelog

    195cc73 Add Carlos Eduardo Witte as contributor
    9184889 Extend watermarking
    👍 2396969 Fix #149, Add cmd prefix support to help
    6d5c8c0 Fix #153
    3ccfa0f Fix #155
    f3a25d9 Fix #156
    4a9adac Fix #157, bump version
    760a5aa Fix #159
    b2e52e8 Fix #160
    215fc52 Fix #164
    4c0473c Fix #166
    a7901a1 Fix #170,#173,#175
    6220ebf Fix #181,#182
    abe118f Fix #183, #184
    4b5cc24 Fix #188
    33e7eff Fix add keywords
    ba4e619 Fix coverage.sh
    🛠 cc558fe Fixed ToMillimetres() (#162)
    🛠 198349c Fixed a bug in paperSize.go toMillimetres, which was returning d.Height twice instead of d.Width and d.Height; and fixed ToMillimeters and ToCentimeters spelling errors.
    🛠 bfe4c05 Fixed func toMillimetres() which was returning d.Height twice instead of d.Width and d.Height
    1ff4f53 Revert "Fixed a bug in paperSize.go toMillimetres, which was returning d.Height twice instead of d.Width and d.Height; and fixed ToMillimeters and ToCentimeters spelling errors."


Previous changes from v0.3.2

  • 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

    0️⃣ 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