-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add back functionality for bookmark props #2715
base: master
Are you sure you want to change the base?
Conversation
|
Nice! this probably closes #2682 too 🙌 |
pls merge |
Confirmed this fixes #2700 for me |
@diegomura @wojtekmaj can we merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pushing this. I really need to start using the base pdfkit thought 😞 Do you think you can try finding a way to fix this on react-pdf side?
Polite bump. I've been pinned to an old version of |
I think since this is a regression from the original behavior in this lib and is blocking consumers from updating, its probably best to get this merged and then consider making changes to the vendor source package. I think blocking new features might be appropriate to steer the ship in that direction but fixing the regression should be priority # 1. |
This restores functionality that seemed to have accidentally erased in a minor version update to converge the forked
pdfkit
vendor package. This resulted in all bookmarks being created infit
mode on the last page not respecting any of the props.I additionally added some comments to roughly show where the custom logic of this file exists to give some signal that this should not be altered in future fork maintenance.
I tested this locally in a simple repro and observed both the raw output and the PDF in Adobe Reader were again properly linking to the page and respecting props.
There are no unit tests for the custom logic in this vendor package hence I did not add any new ones.
Resolves #2700