react-pdf
react-pdf copied to clipboard
PDF text and spaces are messy
Before you start - checklist
- [X] I followed instructions in documentation written for my React-PDF version
- [X] I have checked if this bug is not already reported
- [X] I have checked if an issue is not listed in Known issues
- [X] If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
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:
Steps to reproduce
Expected behavior
Render a normal PDF file with it's original style
Actual behavior
Messy PDF file
Additional information
No response
Environment
- Browser: 124.0.6367.158
- React-PDF version: 8.0.2
- React version: 18
- Nextjs version: 14