-
-
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
fix: page dpi #2771
fix: page dpi #2771
Conversation
🦋 Changeset detectedLatest commit: f5b8eca The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@wojtekmaj @diegomura do you have some hint for me maybe how to get the link working locally in order to test this? Edit: While I did not get it run locally I managed to include my link implemented in my build and tested it there and it does the job and I also implemented some improvement. So you can either pass pixel size or the pre-defined strings. Like this I am currently testing: I was wondering if we would like to implement support for other units as well, as we do have for styling already. Shouldn't be too complicated, I could easily implement 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.
utACK
I'm looking forward to the next version. |
@diegomura, I have the same question, right now, I noticed this bug and it is causing major issues for us |
Would be cool to get #2773 merged as well and a new version published. Thank you so much! |
https://github.com/diegomura/react-pdf/releases/tag/%40react-pdf%2Frenderer%404.0.0 Which brings over also Yoga 3.0 And fixes the DPI issue (diegomura/react-pdf#2771) So hopefully that will make it easier to implement other devices than ReMarkable 1/2.
Fix for dpi issue implemented with #1869
fixes #1953
fixes #2006
fixes #2668
Unfortunately was
n'table to get it linked locally so this isuntestedtested. Maybe someone could test or have some tip how to get the package tested locally. I followed the steps in the CONTRIBUTION.md and it says it's linked but it does not detect changes usingyarn watch
and doesn't make any changes in my test setup.yarn bootstrap
is not working for me but for my understanding also should not be needed anymore?Edit: I was able to test this not in local development but in my build and it does the desired job.
How to test:
<Image style={{width: 100}} />
and<Text style={{fontSize: 12}}/>
and some basic style.<page size="A4">
<page size="A4" dpi={300}>
Current behavior: (bug)
Expected behavior: