* Accessibility Issue: CS / cs Operator Error in Tagged Table #1640
* Fix Table Accessibility Issue: Operator CS/cs not allowed in this current state
* revert modifications at debug line
* Accessibility: Fixed Link annotation is not nested inside a Link structure element
* Accessibility: Fixed Link annotation is not nested inside a Link structure element
* Changelog
* Fix links leakage into subsequent structures
* Prettier
---------
Co-authored-by: akowalczewski <akowalczewski@gn.com>
* fix: use dynamic count for beginbfrange declaration
Fixes garbled text copying in Chrome/Edge for PDFs with >256 unique characters
* Add changelog line
Addressed an issue with garbled text copying in Chrome/Edge for PDFs containing more than 256 unique characters.
* test: add tests for beginbfrange count declaration
Add test cases to verify that the beginbfrange count declaration
in ToUnicode CMap matches the actual number of bfrange entries.
- Test for fonts with >256 characters (multiple ranges)
- Test for fonts with <=256 characters (single range)
These tests ensure the fix for the beginbfrange count bug is
correct and prevent regression.
Related to #1659
* Revert "test: add tests for beginbfrange count declaration"
This reverts commit dda6f4a762acbaa09f5986502c494c97959c7643.
* Rewrite tests for beginbfrange count declaraton. Fix code style issue.
* fix(tests): remove unused variables in font.spec.js
Replace for loops with unused match variables with spread operator
to directly get array length, fixing ESLint no-unused-vars errors.
- Replace loop counting with [...rangeMatches].length
- Fixes ESLint errors at lines 152 and 197 in tests/unit/font.spec.js
- All tests pass successfully
---------
Co-authored-by: zhang_xiaoning <zxn@winning.com.cn>
* Fix further LineWrapper precision issues
* add test of bounded text precision issue
* add rowSpanning table example
* add failure threshold
* implement toContainText jest matcher
* create a unit test for bounded text precision
* remove round up rounding code path
---------
Co-authored-by: Luiz Américo Pereira Câmara <blikblum@users.noreply.github.com>
* Add page size utilities
- Added page.contentWidth
- Added page.contentHeight
* Add table support
- Tables support cell customization (including colors)
- Tables also support rotatable text (with alignment support)
- Tables have accessibility support
* chore: fix code generation context
- code generation now respects the current document positioning to allow use of page dependent operations
* chore: remove comments from build
* removed unnecessary config optimisations
* Optimize table minification
* Performance improvements to tables
* Improve font handling in tables
* Add support for dynamic sizing
- Enable defining sizes using any units (defaulting to Points)
- This also allows us to define sizes based on the current font context i.e. em's
- The new public `sizeToPoint` method allows users to also interact with these sizes to generate the correct point sizes
* Optimise side normalization
* Added test case for one margin being undefined
* add indentAllLines option to indent all lines of a paragraph instead of only the first one
* update comments
* Update CHANGELOG.md
---------
Co-authored-by: Libor M. <liborm85@gmail.com>
* Set tab order when document is tagged
* Update approach and add inverse test
* Revert page dictionary setup
* Update lib/mixins/markings.js
* Update kitchen-sink-accessible.pdf
* Update CHANGELOG.md
---------
Co-authored-by: Libor M. <liborm85@gmail.com>
* Update text.js
to fix measuring text when opentype features are passed in to .text()
* added simple test
* Update CHANGELOG.md
---------
Co-authored-by: Libor M. <liborm85@gmail.com>