react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

PDF text and spaces are messy

Open eretztzvi opened this issue 1 month ago • 1 comments

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:

{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

  • Browser: 124.0.6367.158
  • React-PDF version: 8.0.2
  • React version: 18
  • Nextjs version: 14

eretztzvi avatar May 27 '24 09:05 eretztzvi