{"full_name":"pdfcpu/pdfcpu","owner":"pdfcpu","name":"pdfcpu","shard":"1","url":"https://github.com/pdfcpu/pdfcpu","description":"PDF tooling for Go and the command line.","homepage":"http://pdfcpu.io/","topics":["go","golang","golang-library","pdf","pdf-files","cli","pdf-tools"],"tag_pages":["cli","go","golang","golang-library","pdf","pdf-tools"],"language":"Go","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/53127365?v=4","created_at":"2017-06-18T17:27:38Z","pushed_at":"2026-11-02T10:03:39Z","metrics":{"stars":8909,"forks":650,"watchers":81,"issues":1151,"prs":289,"releases":77,"issues_open":117,"issues_closed":1034,"prs_open":1,"prs_closed":199,"prs_merged":89,"discussions":92},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[8904,8905,8906,8907,8908,8908,8909],"forks":[647,650,650,650,650,650,650],"watchers":[null,81,81,81,81,81,81],"issues_open":[null,115,116,116,117,117,117],"prs_open":[null,1,1,1,1,1,1]},"boards":{},"same_owner":[],"issues":[{"number":45,"title":"PDF Export to Image","comments":24,"created_at":"2018-09-28T13:13:34Z"},{"number":122,"title":"Text extraction","comments":20,"created_at":"2019-10-29T16:14:52Z"},{"number":567,"title":"api: Install problem v0.4.0","comments":18,"created_at":"2023-03-02T00:18:13Z"},{"number":4,"title":"replacing text in a PDF","comments":18,"created_at":"2017-10-08T10:03:21Z"},{"number":34,"title":"PDF/A conversion/validation","comments":17,"created_at":"2018-08-21T10:35:45Z"},{"number":909,"title":"Watermark/multiple text water mark and repeat text","comments":13,"created_at":"2024-07-05T10:14:25Z"},{"number":1030,"title":"import: free scaling of images","comments":12,"created_at":"2024-12-09T08:14:51Z"},{"number":832,"title":"support for tagged PDFs (PDF/UA, PDF/A)","comments":12,"created_at":"2024-03-15T02:39:13Z"}],"discussions":[{"number":1490,"title":"pdfcpu v0.16.0 release candidate — feedback welcome","comments":1,"category":"Announcements","created_at":"2026-09-20T19:34:43Z"},{"number":1478,"title":"Is it possible to use the library to change URL of hyperlinks in the file?","comments":1,"category":"Q&A","created_at":"2026-09-09T19:27:04Z"},{"number":1471,"title":"Document resize & page orientation","comments":1,"category":"Q&A","created_at":"2026-09-01T13:49:57Z"},{"number":1458,"title":"pdfcpu v0.14.0 released","comments":0,"category":"Announcements","created_at":"2026-08-09T09:21:18Z"},{"number":1453,"title":"v0.14.0-rc.1","comments":1,"category":"Announcements","created_at":"2026-07-28T11:31:32Z"},{"number":1433,"title":"pdfcpu v0.14.0 is coming next week — migration may be required","comments":2,"category":"Announcements","created_at":"2026-07-15T19:28:11Z"},{"number":1408,"title":"Upcoming Release v0.13.0","comments":2,"category":"Announcements","created_at":"2026-05-27T16:13:29Z"},{"number":1372,"title":"v0.12.0 Update","comments":1,"category":"Announcements","created_at":"2026-03-31T23:46:12Z"}],"latest_release":{"name":"v0.16.4","tag":"v0.16.4","published_at":"2026-10-27T21:17:38Z","body":"# pdfcpu v0.16.4\r\n\r\nThis is a security update for crafted PDFs and form or create data that could cause excessive CPU or memory use or terminate a\r\nprocess. \r\n\r\nAdditive Go API  Changes: `types.DecodeStreamFunc` and `types.NewLazyObjectStreamObjectWithDecoder`. \r\nExisting constructors and signatures remain unchanged.\r\nRequires Go 1.26 or later.\r\n\r\n**Release binaries were built with [Go 1.27.3](https://go.dev/doc/devel/release#go1.27.3), which includes security fixes for `crypto/x509`.**\r\n\r\n**1) Unbounded object traversal — [GHSA-2623-w998-vcr4](https://github.com/pdfcpu/pdfcpu/security/advisories/GHSA-2623-w998-vcr4):**\r\n\r\nLong chains of PDF objects could exhaust the Go stack and terminate the process during optimization while reading,\r\nannotation removal, or page migration. These paths now use iterative traversal. The fix preserves long valid chains,\r\nhandles objects whose value is another reference, and bounds error-path output.\r\n\r\nFix: [0bb00190](https://github.com/pdfcpu/pdfcpu/commit/0bb001901ef160aa75e882d839ee2997d56fdcb2).\r\n\r\n**2) Repeated stream data — [GHSA-pr6x-vqwr-4hj2](https://github.com/pdfcpu/pdfcpu/security/advisories/GHSA-pr6x-vqwr-4hj2):**\r\n\r\nShared or nested stream aliases and oversized declared lengths could make a small PDF retain unbounded encoded or\r\ndecoded data. Encoded streams now count toward the existing per-read budget, lengths past the end of the input no\r\nlonger size buffers, and compressed xref entries that share one current object-stream index are rejected.\r\n\r\nFiltered decodes through `XRefTable.DecodeStream` and lazy object streams each receive a separate cumulative allowance\r\n`A = max(1 GiB, 2 × MaxDecodeBytes)`; both default to 1 GiB. The allowances count cumulative decoding, not live memory.\r\nObject streams remain lazy, image extraction remains subject to its per-stream and image limits, and a negative\r\n`MaxDecodeBytes` disables these limits.\r\n\r\nFix: [82c88cec](https://github.com/pdfcpu/pdfcpu/commit/82c88cecdee7dac398bebf06d0bdd28728235a57).\r\n\r\n**3) Poster tile grids — [GHSA-g5q6-53hx-f68j](https://github.com/pdfcpu/pdfcpu/security/advisories/GHSA-g5q6-53hx-f68j):**\r\n\r\nA crafted page size could make `poster` create an unbounded number of tile definitions and output pages, consuming\r\nexcessive CPU and memory. Poster output is now limited to 1,000 tiles per source page, and oversized grids are rejected\r\nbefore page content is transformed or tile objects are allocated. Zero, negative and non-finite page or tile dimensions\r\nare rejected.\r\n\r\nTiles produced by `poster`, `cut` and `ndown` now share one resource dictionary per source page instead of carrying a\r\ncopy each. With a margin, each tile references the shared page content through a content array instead of embedding a\r\ncopy of it. Rendered output is unchanged.\r\n\r\nFix: [a9725db6](https://github.com/pdfcpu/pdfcpu/commit/a9725db622f32c519fee90c1733b779ccd5dd598).\r\n\r\n**4) Create table dimensions — [GHSA-cphg-88q6-whwh](https://github.com/pdfcpu/pdfcpu/security/advisories/GHSA-cphg-88q6-whwh):**\r\n\r\nTable `rows` and `cols` in a `create` template were unbounded, so a few hundred bytes of JSON could make create\r\nallocate and render without limit. All tables of a template now share a limit of 100,000 rows plus columns. A table\r\nwhose `anchor` is invalid, or given together with `pos`, is now rejected; previously its remaining validation was\r\nskipped.\r\n\r\nFix: [5367e878](https://github.com/pdfcpu/pdfcpu/commit/5367e878f7766b94dd5f7e9e3128e1ab5f9b30b6).\r\n\r\n**5) Unbounded page numbers — [GHSA-gx4m-7r76-vpww](https://github.com/pdfcpu/pdfcpu/security/advisories/GHSA-gx4m-7r76-vpww):**\r\n\r\nA large page number in a `create` template or form-fill data could make pdfcpu allocate excessive memory or stall.\r\n`create` now limits additions to 1,000 pages beyond the existing document; `form fill` and `form multifill` accept image\r\npage numbers only within the document. Both paths reject page numbers below 1.\r\n\r\nFix: [ebac361a](https://github.com/pdfcpu/pdfcpu/co","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}