192 Commits

Author SHA1 Message Date
0d83ec6b6c Migrate repository to new hosting and cleanup CI/CD files
Switched module path and imports to gitea.tryanks.com. Removed GitHub-specific files like workflows, dependabot, and devcontainer as part of migration. This streamlines the codebase for the new hosting environment.
2025-05-12 22:33:48 +08:00
43924743e2 Merge branch 'main' into feature/image-appearance 2025-05-12 22:14:06 +08:00
Paul van Brouwershaven
7feb03999b Enhance handling of PDF Contents in createIncPageUpdate to preserve stream structure 2025-05-12 11:12:20 +02:00
Paul van Brouwershaven
0f834debb7 Fix test removed invalid source test file 2025-05-12 11:00:34 +02:00
Paul van Brouwershaven
bf1f861031 Ensure PDF version is at least 1.5 for SigFlags and UF support 2025-05-12 11:00:34 +02:00
Paul van Brouwershaven
e026bf1577 Add newline, fix #71 2025-05-12 09:30:51 +02:00
Corentin Mors
25feb83db7 Update readme with image appearance info 2025-05-10 18:28:20 +02:00
Corentin Mors
4b3957a882 Fix JPG decode 2025-05-10 18:24:05 +02:00
dependabot[bot]
6cbaf97a70 Bump golang.org/x/text from 0.22.0 to 0.25.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.22.0 to 0.25.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.22.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-10 11:46:50 +02:00
dependabot[bot]
1aafac7336 Bump golang.org/x/crypto from 0.33.0 to 0.35.0 (#68) 2025-05-10 11:40:19 +02:00
Corentin Mors
51569c8aec PNG support 2025-05-01 15:10:54 +02:00
Corentin Mors
948b24a084 Revert some unecessary changes 2025-05-01 13:22:42 +02:00
Corentin Mors
abd05a5aaa Implement image watermark 2025-05-01 11:31:06 +02:00
Corentin Mors
a3b23161c4 Split down into multiple functions 2025-05-01 11:01:57 +02:00
Corentin Mors
9616146853 Test with two consecutive signatures 2025-04-29 11:47:37 +02:00
Corentin Mors
ce8274cc9c Image visual appearance 2025-04-29 11:35:42 +02:00
Corentin Mors
c958b32269 Add a devcontainer for development 2025-04-28 16:34:17 +02:00
Paul van Brouwershaven
94790aeb1f Move certificate check 2025-03-10 20:52:02 +01:00
Paul van Brouwershaven
d3fca14cc7 Check if certificate is provided in the input 2025-03-10 16:55:44 +01:00
Paul van Brouwershaven
52e3fa5072 Check hash with the given algorithm 2025-03-10 16:54:56 +01:00
Paul van Brouwershaven
540ffbbec8 Split xref table and stream code and tests 2025-02-26 09:46:42 +01:00
Paul van Brouwershaven
cf6c1eb280 Improve xref test coverage 2025-02-26 08:42:52 +01:00
Paul van Brouwershaven
61ba7949bd Only test on committed test files 2025-02-25 18:17:38 +01:00
Paul van Brouwershaven
681997c680 Fix PDF 1.7 with XRef Stream causes panic #61 2025-02-25 18:13:10 +01:00
Paul van Brouwershaven
1fb39a3ce9 Merge pull request #67 from digitorus/revert-66-revert-65-fix-catalog-entries-discarded
fix: Existing catalog entries are being discarded; this ensures that all catalog entries are copied to the new updated catalog.
2025-02-25 15:11:16 +01:00
Paul van Brouwershaven
2d533be139 Removing code that is no longer necessary 2025-02-25 14:57:28 +01:00
Paul van Brouwershaven
94e7fa22a9 Revert "Revert "fix: Existing catalog entries are being discarded"" 2025-02-21 21:32:38 +01:00
Paul van Brouwershaven
be2806bdb6 Merge pull request #66 from digitorus/revert-65-fix-catalog-entries-discarded
Revert "fix: Existing catalog entries are being discarded"
2025-02-21 20:53:27 +01:00
Paul van Brouwershaven
03787d6030 Revert "fix: Existing catalog entries are being discarded" 2025-02-21 20:51:20 +01:00
Paul van Brouwershaven
db2c9ec17b Merge pull request #65 from Twometer/fix-catalog-entries-discarded 2025-02-21 20:28:36 +01:00
Twometer
bd278d2f17 fix: Existing catalog entries are being discarded 2025-02-21 17:11:42 +01:00
dependabot[bot]
fc552d6e33 Bump golang.org/x/crypto from 0.32.0 to 0.33.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 20:14:33 +01:00
dependabot[bot]
460ad648bb Bump golang.org/x/crypto from 0.31.0 to 0.32.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 19:34:32 +01:00
dependabot[bot]
1a69734ad4 Bump golang.org/x/crypto from 0.30.0 to 0.31.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.30.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-16 19:07:22 +01:00
Paul van Brouwershaven
2096c7e091 Fix test filename 2024-12-16 15:36:24 +01:00
Paul van Brouwershaven
b9112bb85b Add initial support for signature appearance 2024-12-16 15:05:27 +01:00
Paul van Brouwershaven
e5cdb61bea Refactor object handling 2024-12-11 16:24:26 +01:00
dependabot[bot]
21dd78d75e Bump golang.org/x/crypto from 0.29.0 to 0.30.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.29.0 to 0.30.0.
- [Commits](https://github.com/golang/crypto/compare/v0.29.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 20:17:26 +01:00
Paul van Brouwershaven
1f5035cb0e Update golangci-lint 2024-11-14 14:24:24 +01:00
Paul van Brouwershaven
fb84c4645c Update golangci-lint 2024-11-14 14:19:43 +01:00
Paul van Brouwershaven
1aff35b0c8 Update golangci-lint 2024-11-14 14:17:18 +01:00
Paul van Brouwershaven
0d7470938e Fix loopclosure 2024-11-14 14:11:15 +01:00
Paul van Brouwershaven
bacc810a68 Fix linting errors 2024-11-14 13:33:46 +01:00
Paul van Brouwershaven
7946d5266d Fixes and support for ApprovalSignature and TimeStampSignature 2024-11-14 13:00:58 +01:00
dependabot[bot]
0899875647 Bump golang.org/x/crypto from 0.27.0 to 0.28.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/crypto/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 16:25:46 +02:00
dependabot[bot]
2346d1d7ce Bump golang.org/x/crypto from 0.26.0 to 0.27.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 21:10:45 +02:00
dependabot[bot]
7861fe1bb2 Bump golang.org/x/crypto from 0.25.0 to 0.26.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/crypto/compare/v0.25.0...v0.26.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 20:17:19 +02:00
Paul van Brouwershaven
6ad18001af Add size of the raw issuer which is added by AddSignerChain 2024-08-08 12:55:28 +02:00
dependabot[bot]
bbed2ea2a1 Bump golang.org/x/crypto from 0.24.0 to 0.25.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/crypto/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 20:45:44 +02:00
Paul van Brouwershaven
77cc6791aa Refactor and improve xref stream writing
- Split writeXrefStream into smaller, focused functions
- Improve error handling and messages in xref related functions
- Enhance code readability and maintainability
- Use io.WriteString for more efficient string writing

This refactoring aims to make the xref stream writing process more modular, easier to understand, and slightly more efficient, while maintaining the existing functionality.
2024-07-07 17:38:17 +02:00