Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF text and spaces are messy #1805

Closed
4 tasks done
eretztzvi opened this issue May 27, 2024 · 3 comments
Closed
4 tasks done

PDF text and spaces are messy #1805

eretztzvi opened this issue May 27, 2024 · 3 comments
Labels
bug Something isn't working stale

Comments

@eretztzvi
Copy link

eretztzvi commented May 27, 2024

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • 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 eretztzvi added the bug Something isn't working label May 27, 2024
@thosil
Copy link

thosil commented Jun 5, 2024

duplicate of #1684

Copy link
Contributor

github-actions bot commented Sep 9, 2024

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 github-actions bot added the stale label Sep 9, 2024
Copy link
Contributor

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants