Closed redbloons33 closed 2 years ago
Install vue3 with vite
Sorry, but that's not a framework that we know anything here and consequently we unfortunately cannot provide any help/support for it.
renderTextLayer
Please note https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):
If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.
I've tried enabling useWorkerFetch since it is disabled for node by default but it didn't fix anything.
In the configuration section you claimed to be using "Chrome Version 105.0.5195.127 (Official Build) (32-bit)" but here you mention Node.js, hence it's not entirely clear what your environment actually is!?
Also, note that both useWorkerFetch
and cMapUrl
are parameters that you need to pass to getDocument
; see https://github.com/mozilla/pdf.js/blob/3dc9b427b9aca97a539af0962689fab3d6c41cbf/src/display/api.js#L130-L246
I'm guessing I need a custom standardfontdatafactory?
There's default factories provided for both browsers and Node.js environments, so it should work with the necessary getDocument
parameters provided (see above).
Attach (recommended) or Link to PDF file here:
demo_file.pdf
Configuration:
Steps to reproduce the problem:
What went wrong? (add screenshot)
See image below. Console message:
I've tried enabling useWorkerFetch since it is disabled for node by default but it didn't fix anything. I'm guessing I need a custom standardfontdatafactory? Not sure how to do that.