wojtekmaj / react-pdf

Display PDFs in your React app as easily as if they were images.
https://projects.wojtekmaj.pl/react-pdf
MIT License
9.34k stars 882 forks source link

PDF text and spaces are messy #1805

Closed eretztzvi closed 3 days ago

eretztzvi commented 4 months ago

Before you start - checklist

Description

Im using Nextjs 14, and while uploading a pdf file or display it from an external link, the text gets messy and spaces also.

The images below from a link that return a pdf, I've checked the file and it's ok

Also, I checked it in other devices to make sure it's not a problem in my machine

This is how i use the package:

{Array.from({ length: numPages }).map((_, index) => ( ))}

Steps to reproduce

WhatsApp Image 2024-05-27 at 12 33 25 WhatsApp Image 2024-05-27 at 12 34 10 WhatsApp Image 2024-05-27 at 12 34 59

Expected behavior

Render a normal PDF file with it's original style

Actual behavior

Messy PDF file

Additional information

No response

Environment

thosil commented 4 months ago

duplicate of #1684

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] commented 3 days ago

This issue was closed because it has been stalled for 14 days with no activity.