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.11k stars 867 forks source link

Use 2 version of react-pdf in 1 project #1663

Closed nmaddp1995 closed 5 months ago

nmaddp1995 commented 8 months ago

Before you start - checklist

Description

I am using react-pdf v5 to display PDF files. But when I applied text-layer, the v5 misaligned a lot of text so I decided to use react-pdf v7 instead. Now I want to keep all other react-pdf instances at v5, only the component I apply text-layer apply v7.

Is there any way I can do that?

Proposed solution

No response

Alternatives

No response

Additional information

No response

prokutenb8x commented 8 months ago

Yes, I also encountered this problem too. I try to set up but it didn't work

wojtekmaj commented 8 months ago

Why not go v7 all the way?

prokutenb8x commented 8 months ago

Currently, our app is really big and relevant to a lot of other apps in the same project, so we don't want it to affect other parts.

github-actions[bot] commented 5 months 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 5 months ago

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