douglasjunior / react-native-pdf-renderer

⚛ A zoomable, blazing fast, zero dependencies, pure native, typed PDF Renderer for Android and iOS.
MIT License
131 stars 3 forks source link

PDF resolution very low under Android #13

Closed nmehlei closed 3 months ago

nmehlei commented 5 months ago

When viewing a PDF inside Android (Android 14 was tested), the PDF resolution is very low. It's barely noticeable when the whole PDF page is displayed at once, but once you zoom in to actually read text, the text becomes very hard to read due to the text consisting mostly of pixels.

douglasjunior commented 5 months ago

Can you provide the PDF file to reproduce the problem?

Because as you can see with the PDF used in Sample project, everything looks fine.

douglasjunior commented 3 months ago

We found a situation in PDF that have low quality image captured from scanners.

Working progress solution https://github.com/douglasjunior/react-native-pdf-renderer/commit/7ba09b9ae9a0ea81bfa39b907e6ac8aaf0ff7842

ergen35 commented 3 months ago

Have the same problem, under the same conditions except that i'm using RN 0.74. It's such a lightweight an good PDF reader

douglasjunior commented 3 months ago

Hello guys, you can try this working in progress version with:

npm install react-native-pdf-renderer@https://github.com/douglasjunior/react-native-pdf-renderer.git#7ba09b9ae9a0ea81bfa39b907e6ac8aaf0ff7842

Or

yarn add react-native-pdf-renderer@https://github.com/douglasjunior/react-native-pdf-renderer.git#7ba09b9ae9a0ea81bfa39b907e6ac8aaf0ff7842
douglasjunior commented 3 months ago

Done https://github.com/douglasjunior/react-native-pdf-renderer/releases/tag/1.3.0