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
Try to open a file url: "file://C:\Users\John Doe\test.pdf"
PDFJS.getDocument( "file://C:\Users\John Doe\test.pdf")...
2.ENOENT: no such file or directory, lstat 'C:\C:\Users\John%20Doe\test.pdf"
I've spent a bunch of time on this, and I think there are two issues:
the encoded space, which is fixed in 8907
the file://C:... gets transformed to file:///C:... (extra slash), and then it later sees the / for the filesystem, and adds another c:\ to the front.
Note - this whole file://c:... works as expected in v1.9.426 (even with the encoded space).
The text was updated successfully, but these errors were encountered:
Configuration:
Electron 1.6
Windows 10
(These are pdfjs-dist)
Works: v1.9.426
Doesn't work: Latest - eg: 1.9.583
Steps to reproduce the problem:
PDFJS.getDocument( "file://C:\Users\John Doe\test.pdf")...
2.ENOENT: no such file or directory, lstat 'C:\C:\Users\John%20Doe\test.pdf"
I've spent a bunch of time on this, and I think there are two issues:
Note - this whole file://c:... works as expected in v1.9.426 (even with the encoded space).
The text was updated successfully, but these errors were encountered: