forked from foliojs/pdfkit
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from foliojs:master #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pull
wants to merge
104
commits into
swaitw:master
Choose a base branch
from
foliojs:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* test: Upgrade jest 26 to 28 Signed-off-by: koooge <koooooge@gmail.com> * test: Use jsdom instead of node Signed-off-by: koooge <koooooge@gmail.com> * test: Delete 12 in CI for jest@28 Signed-off-by: koooge <koooooge@gmail.com> * test: Upgrade jest 28 to 29 Signed-off-by: koooge <koooooge@gmail.com> * test: Delete 14 in CI for jest@29 Signed-off-by: koooge <koooooge@gmail.com> --------- Signed-off-by: koooge <koooooge@gmail.com>
* test: CI node16 and 18 Signed-off-by: koooge <koooooge@gmail.com> * chore: Replace jest-screenshot with jest-image-snapshot Signed-off-by: koooge <koooooge@gmail.com> * test: git mv snapshots Signed-off-by: koooge <koooooge@gmail.com> * test: Minor-upgrade canvas Signed-off-by: koooge <koooooge@gmail.com> --------- Signed-off-by: koooge <koooooge@gmail.com>
* Added PDF/A-2 and PDF/A-3 subsets A and B It seems like PDF/A-2 and PDF/A-3 are not very different from PDF/A-1 as far as the A and B subsets are concerned (A requires tagging which PDFKit supports already). With this change, we can let the generated PDF present itself as PDF/A-2 or PDF/A-3. * Updated docs and changelog for new PDF/A subsets * Fixed an issue where ICC profile path can be wrong for built package but good for tests
Added note to docs regarding PDF/A not supporting the standard AFM fonts
Bump crypto-js from 4.0.0 to 4.2.0 to fix CVE-2023-46233
Co-authored-by: Franklin Strube <fstrube@morevang.com> Co-authored-by: Luiz Américo Pereira Câmara <blikblum@users.noreply.github.com>
* Added PDF/UA subset and its metadata * Added PDF/UA metadata unit tests * Added PDF/UA subset to accessibility docs * Updated change log for PDF/UA subset
* adds test case with line-breaks in list items reproduces #1486 * use LineBreaker per item and only draw `firstLine` once fixes #1486 * boyscout: consistent naming * boyscout: test multiple line break versions * update changelog for fix of #1486 --------- Co-authored-by: David <filecage@users.noreply.github.com>
* Replace soft hyphen with visible hyphen if line break demands it * Add changelog entry for #457 * Add soft hyphen support in readme
This makes the resulting PDF files smaller. It's cumbersome to filter out all commands that could result in identity transforms in code that's using PDFKit, so it makes sense to have the check in the transform() function.
Update webpack example dependencies
* 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
* Handle null values in table text * Add test case for null value in table text * Update CHANGELOG.md
* 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>
* 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 dda6f4a. * 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>
…cture element (#1664) * 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>
* 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )