Update module github.com/pdfcpu/pdfcpu to v0.13.0 - #2500
Merged
Conversation
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
golanglemonade
previously approved these changes
Jun 17, 2026
golanglemonade
enabled auto-merge (squash)
June 17, 2026 04:21
renovate
Bot
force-pushed
the
renovate/github.com-pdfcpu-pdfcpu-0.x
branch
from
June 17, 2026 04:28
04fede8 to
63cb185
Compare
|
golanglemonade
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
v0.12.1→v0.13.0Release Notes
pdfcpu/pdfcpu (github.com/pdfcpu/pdfcpu)
v0.13.0Compare Source
A Release Featuring CLI Pipelines and Safer Defaults
Starting with this release, pdfcpu improves CLI usability with broader stdin/stdout pipeline support and stricter overwrite handling.
Check out the refreshed documentation at https://pdfcpu.io
Many commands now support
-for stdin/stdout, making pdfcpu easier to use in shell pipelines. Explicit output files and non-empty output directories are no longer overwritten implicitly. Use the new global--forceflag when overwriting is intentional.Example:
pdfcpu optimize - out.pdf < in.pdfor:
or a pipeline:
aws s3 cp s3://acme-contracts/master.pdf - \ | pdfcpu optimize - - \ | aws s3 cp - s3://acme-contracts/optimized/master.pdfCLI Improvements
This release adds and refines several user-facing CLI features:
---forceflag for explicit overwrite handlingannotations list --jsonform list --jsoncertificates list --jsonmerge --bookmark-mode wrap|preserveversioncommand behaviorThe new overwrite behavior is intentionally stricter. Existing scripts that relied on implicit overwrites may need to add
--force.Merge Bookmarks
The merge command now supports bookmark handling modes:
Supported modes:
wrappreserveThe default is
wrap.This release also improves bookmark tree preservation and handling of bookmark destination collisions.
JSON Output
JSON output is now available for selected listing commands:
form list --jsonalso supports multi-file form export JSON.Certificate Trust Store Packaging
Standard builds now start with an empty trusted certificate directory.
Embedded EUTL certificate bundles are only included when building with:
certificates resetnow resets the certificate directory to the build defaults.This keeps standard builds smaller and avoids implying a bundled trust store unless it was explicitly selected at build time.
Experimental Windows 7 Build
An experimental Windows 7 x64 build is available in the release assets:
pdfcpu_0.13.0_Windows_x86_64_win7_experimental.zipThis build uses a patched Go toolchain and is not part of the regular supported release matrix. Feedback from Windows 7 SP1 x64 users is welcome (at #870), especially the output of:
Robustness & Safer Processing
This release adds configurable parser and resource limits for:
The corresponding limits are also part of the configuration. Users of older version will be prompted by the CLI to reset their configuration.
Additional cycle and depth checks were added for page trees, form fields, name trees, and object graph traversal.
Stream parsing and filter decoding have also been hardened against oversized, malformed, and overflowing inputs.
Very large or malformed PDFs that were previously attempted may now be rejected earlier.
Fixes and Improvements
This release includes targeted fixes and compatibility improvements for:
RectandQuadPointsDependencies were updated, including
go-runewidth,x/crypto,x/image, andx/text.Signature Validation Notes
Now usage, help text and docs describe the current signature validation scope and trust boundaries more clearly.
This release does not claim complete legal, eIDAS, LTV, or long-term trust validation.
Development
Behind the scenes, this release includes command plumbing refactoring in
pkg/cli, updated tests around command dispatch, and an experimental Windows 7 build workflow.Thanks
Everybody for testing, reporting issues, and feeding back real-world PDFs.
Your bug reports and edge cases continue to make pdfcpu more robust and useful.
Shoutouts to @harish for spending time on submitting a PR.
Changelog
2226694bump version, fix #1410, #1411a212fadrefactor cli cmd plumbing982b418clarify signature trust boundariesd27afe2fix version cmd80b99feadd certificate JSON listing and reset defaultsa3225abrefactor parameter handling4f4129eadd experimental Win7 build84a68afdecrease binary size via default build w/o bundled certificates, provide build tag pdfcpu_eutl for bundling EUTL trust-list certsecb6888fix #12913491406fix identify versione102024fix #1316d886d17fix #1375d27963bfix #1317174230afix #13598719193fix merge bookmark destination collisions991e0ecfix: #1364b11ad47fix: #13943a73dfarefactor: cli command plumbing6ac18f9fix arg validation895371afix #139659ca0dbfix #140214e191dfix handling of os.Exitcbbb3b5add missing GoDoc comments8983029add cycle-detectionb4c1f98add recursion-depth checking54d7f0aadd limits to configuration21f8b3bsanitize file pathse8abb82harden filter decoders and stream parsing against overflow0ea56f8update scripts05e8897add stdin/stdout support, add --forceConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.