You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I’m attempting to use PDF.js to load a PDF in my web application. It works fine when the file URL is served from a server, but it fails to load when using a local file.
Are there any solutions to this problem? I have considered reading the local file contents and passing them to PDF.js, but this approach is not efficient when dealing with large files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I’m attempting to use PDF.js to load a PDF in my web application. It works fine when the file URL is served from a server, but it fails to load when using a local file.
when I set pdfUrl = 'file:///D:/my.pdf' get error
Are there any solutions to this problem? I have considered reading the local file contents and passing them to PDF.js, but this approach is not efficient when dealing with large files.
Beta Was this translation helpful? Give feedback.
All reactions