-
Hi, I was going to post a bug but I am not sure if I misconfigured something. When I render a PDF (which I cannot share due to sensitive data) using the bundled worker like this:
The PDF renders correctly. The demo react-pdf posted in the home page also renders the PDF correctly as well. However, if I want to use the pdf worker from CDN and configure like so:
The PDF DOES NOT RENDER. Looking at the build for esm entry, it looks like it is using the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It's intentional. PDF.js has introduced "modern" and "legacy" builds (previously, "legacy" was the only build available). We're using "legacy" build for the sake of supporting IE 11. Since v5.4.0, documentation was updated and suggested |
Beta Was this translation helpful? Give feedback.
-
Closing - looks like for my issue I had to get the right fonts loaded:
|
Beta Was this translation helpful? Give feedback.
Closing - looks like for my issue I had to get the right fonts loaded: