Open helight59 opened 3 years ago
Also cannot be used in CRA.
This appears to be because the library hardcodes the Webpack specific loading for PDF.js. It doesn't allow you to do this yourself and I'm not sure it properly loads the cmaps.
react-pdf handles this by letting you configure PDF.js as you need.
Describe the bug A clear and concise description of what the bug is.
How to Reproduce Steps to reproduce the behavior:
<PDFViewer document={{ url: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', }} />
on component.Screenshots![image](https://user-images.githubusercontent.com/20089885/114121420-fd101b00-98f6-11eb-864a-a1c707bc5819.png)
Details (please complete the following information):