Repository navigation
Release v2026.05.5
·
16 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Establish comprehensive test suite with 10 mock PDF forms Implement 10 distinct visual input templates, automate loop scanning and structural validation testing, and check static templates into Git for seamless out-of-the-box onboarding. Testing Data Additions: - Refactored `samples/generate_test_pdfs.go` to programmatically compile 10 separate forms (`test_form_1.pdf` through `test_form_10.pdf`) in `pkg/pdfprocessor/testdata/` representing lines, boxes, underscore text, row grids, negative coordinate boxes, tight alignments, decorative panels, and multi-page KYC documents. - Staged and checked in the 10 generated static PDF templates as tracked repository assets to provide users with immediate visual reference layouts and allow out-of-the-box testing. - Pruned the obsolete `test_form.pdf` fixture from the workspace. Test Automation & CI: - Rewrote `pkg/pdfprocessor/processor_test.go` to loop over all 10 documents during `go test`. - Integrated structural validation using `pdfcpu`'s `api.ValidateContext` and verified interactive fields are successfully mapped using `form.ListFormFields` to guarantee long-term logic stability. - Updated `.gitignore` to dynamically track the 10 static inputs while ignoring all generated `*_editable.pdf` files to prevent Git diff pollution during test execution.