From e2760f0814f76ea2fd46ee2f35090ad3d069e243 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Thu, 1 Jan 2026 23:29:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E5=83=8F=E8=A7=A3=E7=A0=81):=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81JBIG2=E8=A7=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE | 2 +- NOTICE | 2 +- go.mod | 9 ++++++--- go.sum | 10 ++++++---- ofdgo.go | 2 +- ofdgo_annot.go | 2 +- ofdgo_doc.go | 2 +- ofdgo_geom.go | 2 +- ofdgo_meta.go | 2 +- ofdgo_page.go | 2 +- ofdgo_reader.go | 2 +- ofdgo_renderer.go | 3 ++- ofdgo_res.go | 2 +- ofdgo_sign.go | 2 +- ofdgo_text.go | 2 +- 15 files changed, 26 insertions(+), 20 deletions(-) diff --git a/LICENSE b/LICENSE index 3706381..84eff2d 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2025 肖其顿 (XIAO QI DUN) + Copyright 2025-2026 肖其顿 (XIAO QI DUN) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/NOTICE b/NOTICE index 430a92e..05c7810 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ OFDGo -Copyright 2025 肖其顿 (XIAO QI DUN) +Copyright 2025-2026 肖其顿 (XIAO QI DUN) This product includes software developed by 肖其顿 (XIAO QI DUN) (https://github.com/xiaoqidun/ofdgo). \ No newline at end of file diff --git a/go.mod b/go.mod index c14ef5b..0f21f92 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,10 @@ module github.com/xiaoqidun/ofdgo go 1.25.5 -require github.com/tdewolff/canvas v0.0.0-20251224152029-436d73bc8f67 +require ( + github.com/tdewolff/canvas v0.0.0-20251224152029-436d73bc8f67 + github.com/xiaoqidun/jbig2 v0.0.0-20260101144916-f162ac74fd1f +) require ( codeberg.org/go-latex/latex v0.2.0 // indirect @@ -27,9 +30,9 @@ require ( github.com/tdewolff/parse/v2 v2.8.4 // indirect github.com/wcharczuk/go-chart/v2 v2.1.2 // indirect github.com/yuin/goldmark v1.7.13 // indirect - golang.org/x/image v0.32.0 // indirect + golang.org/x/image v0.34.0 // indirect golang.org/x/net v0.46.0 // indirect - golang.org/x/text v0.30.0 // indirect + golang.org/x/text v0.32.0 // indirect gonum.org/v1/plot v0.16.0 // indirect modernc.org/knuth v0.5.5 // indirect modernc.org/token v1.1.0 // indirect diff --git a/go.sum b/go.sum index 3da633a..7c12189 100644 --- a/go.sum +++ b/go.sum @@ -74,6 +74,8 @@ github.com/tdewolff/test v1.0.11 h1:FdLbwQVHxqG16SlkGveC0JVyrJN62COWTRyUFzfbtBE= github.com/tdewolff/test v1.0.11/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= github.com/wcharczuk/go-chart/v2 v2.1.2 h1:Y17/oYNuXwZg6TFag06qe8sBajwwsuvPiJJXcUcLL6E= github.com/wcharczuk/go-chart/v2 v2.1.2/go.mod h1:Zi4hbaqlWpYajnXB2K22IUYVXRXaLfSGNNR7P4ukyyQ= +github.com/xiaoqidun/jbig2 v0.0.0-20260101144916-f162ac74fd1f h1:3sHsteof9eSF2j+Fx7HYviEKXChhbA5kUkcY5QGE2aA= +github.com/xiaoqidun/jbig2 v0.0.0-20260101144916-f162ac74fd1f/go.mod h1:654Fd3lJcYbwevM0oBomVagaztRO0CSdCgwczHuKyDs= github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU= github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= @@ -86,8 +88,8 @@ golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDf golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/image v0.0.0-20210504121937-7319ad40d33e/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E= -golang.org/x/image v0.32.0 h1:6lZQWq75h7L5IWNk0r+SCpUJ6tUVd3v4ZHnbRKLkUDQ= -golang.org/x/image v0.32.0/go.mod h1:/R37rrQmKXtO6tYXAjtDLwQgFLHmhW+V6ayXlxzP2Pc= +golang.org/x/image v0.34.0 h1:33gCkyw9hmwbZJeZkct8XyR11yH889EQt/QH4VmXMn8= +golang.org/x/image v0.34.0/go.mod h1:2RNFBZRB+vnwwFil8GkMdRvrJOFd1AzdZI6vOY+eJVU= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= @@ -139,8 +141,8 @@ golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k= -golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM= +golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= +golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= diff --git a/ofdgo.go b/ofdgo.go index bd3a71d..b29eefa 100644 --- a/ofdgo.go +++ b/ofdgo.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_annot.go b/ofdgo_annot.go index 84ca304..2721f04 100644 --- a/ofdgo_annot.go +++ b/ofdgo_annot.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_doc.go b/ofdgo_doc.go index 61c2acd..372163c 100644 --- a/ofdgo_doc.go +++ b/ofdgo_doc.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_geom.go b/ofdgo_geom.go index d2b6ada..1075dea 100644 --- a/ofdgo_geom.go +++ b/ofdgo_geom.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_meta.go b/ofdgo_meta.go index 377cdd4..d26fca0 100644 --- a/ofdgo_meta.go +++ b/ofdgo_meta.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_page.go b/ofdgo_page.go index 5553d4a..49ec9c1 100644 --- a/ofdgo_page.go +++ b/ofdgo_page.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_reader.go b/ofdgo_reader.go index d8ec773..516d439 100644 --- a/ofdgo_reader.go +++ b/ofdgo_reader.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_renderer.go b/ofdgo_renderer.go index 26bf964..4d12c76 100644 --- a/ofdgo_renderer.go +++ b/ofdgo_renderer.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,6 +29,7 @@ import ( "github.com/tdewolff/canvas/renderers" "github.com/tdewolff/canvas/renderers/pdf" "github.com/tdewolff/canvas/renderers/rasterizer" + _ "github.com/xiaoqidun/jbig2" ) // Renderer 渲染器实现 diff --git a/ofdgo_res.go b/ofdgo_res.go index 9059b06..7d70eb9 100644 --- a/ofdgo_res.go +++ b/ofdgo_res.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_sign.go b/ofdgo_sign.go index 7eb02b5..ce6b3f5 100644 --- a/ofdgo_sign.go +++ b/ofdgo_sign.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/ofdgo_text.go b/ofdgo_text.go index 2972ff7..efde935 100644 --- a/ofdgo_text.go +++ b/ofdgo_text.go @@ -1,4 +1,4 @@ -// Copyright 2025 肖其顿 (XIAO QI DUN) +// Copyright 2025-2026 肖其顿 (XIAO QI DUN) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.