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
4b3957a882
Fix JPG decode
2025-05-10 18:24:05 +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
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
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
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
03787d6030
Revert "fix: Existing catalog entries are being discarded"
2025-02-21 20:51:20 +01:00
Twometer
bd278d2f17
fix: Existing catalog entries are being discarded
2025-02-21 17:11:42 +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
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
Paul van Brouwershaven
6ad18001af
Add size of the raw issuer which is added by AddSignerChain
2024-08-08 12:55:28 +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
Paul van Brouwershaven
08b31dc8f9
Add error handling for context.InputFile.Seek operation
2024-07-07 16:42:04 +02:00
Paul van Brouwershaven
a0da9873d4
Fix writeXrefTable to handle PDFs with multiple revisions
...
- Refactor xref table writing logic to correctly parse existing entries
- Add support for variable first object ID in xref table
- Implement dynamic calculation of new xref entries
- Improve error handling and reporting
This change resolves issue #4 with malformed xref tables when signing PDFs
that have undergone multiple revisions.
2024-07-07 16:42:04 +02:00
Daniel Hernández
c34fd5f0cc
test: add test to cover /Names in catalog
2024-03-14 20:12:02 +01:00
Daniel Hernández
5a0cd0a9b9
fix: add embedded file(s) to catalog
2024-03-14 20:12:02 +01:00
Paul van Brouwershaven
4fb6fafba6
Use UTF-16BE encoding when required
...
Fix #2
2023-03-10 09:10:05 +01:00
Paul van Brouwershaven
e0d0063ef4
Fix loopclosure
2023-03-09 16:16:00 +01:00
Paul van Brouwershaven
007b08d4d1
Replace deprecated ioutil package
2023-02-20 15:46:37 +01:00
Paul van Brouwershaven
d3f4c77359
Remove unused function
2022-07-15 17:32:33 +02:00
Paul van Brouwershaven
29901d0b08
Improve test
2022-07-15 17:23:46 +02:00
Paul van Brouwershaven
50420e5013
Set default DigestAlgorithm with SHA256
2022-07-15 17:22:57 +02:00
Paul van Brouwershaven
dcc44d5779
DigestAlgorithm & SigningCertificate attribute
2022-07-15 15:42:10 +02:00
Paul van Brouwershaven
5a4ccb37cc
Fix spelling
2022-07-04 17:17:36 +02:00
Paul van Brouwershaven
f3ce4f488a
Update build flag
2022-07-04 17:16:14 +02:00
Paul van Brouwershaven
ee03a9e538
Can't run in parallel because reusign keys & certs
2022-07-04 17:14:05 +02:00
Paul van Brouwershaven
5d4de61c21
Make placeholder constant
2022-07-04 17:11:41 +02:00
Paul van Brouwershaven
8e1e8ca8bb
Simplify
2022-06-30 18:13:37 +02:00
Paul van Brouwershaven
d1962b6c98
Switch TSA for tability
2022-06-30 18:12:34 +02:00
Paul van Brouwershaven
4fe43c0794
Use timestamp package for TSA
2022-06-30 18:05:16 +02:00
Paul van Brouwershaven
44ac3c7806
Check errors
2022-06-30 18:04:25 +02:00