nnarhinen/react-pdf

allow to style canvas and set fixed width

macrozone opened this issue · 6 comments

currently, it seems not possible to scale the canvas properly. The scale-property sets the render-scale but this is blurry on newer displays.

The solution would be to set the width of the canvas with css, but this is currently not possible with inline styles.

Looking for this feature aswell is there a proper workaround?

@AlexFloor95 @macrozone Maybe you guys would be interested with my fork then? It fully supports Hi-DPI screens out of the box, and you can also specify a desired width on top of that. I just published this update so I can't wait for your comments! Check it out! https://github.com/wojtekmaj/react-pdf/

@wojtekmaj I gave you push rights to this repository. If you tell me your NPM user name I will give you push rights there too.

@nnarhinen Thank you! My npm username is wojtekmaj as well.

Fixed in #34.

You should be able to publish to NPM now