Which product are you using?
PDF.js Express Plus
PDF.js Express Version
8.7.0
Detailed description of issue
When I am passing this url of my pdf file which is this https://x9oo-fwyq-gkdq.n7.xano.io/vault/cIQOyqj4/aq1ODkTCEIHvsYY7wZn5nZNjVTo/qCt-vA../sample.pdf my viewer is not able to load that file and giving me the default page not found error from my theme. I tried both the ways of loading pdf file from URL as you can see in below code snippet.
Expected behaviour
The PDF provided from URL should be loaded fine because the pdf file is publicly accessible.
Does your issue happen with every document, or just one?
All documents
Link to document
Code snippet
WebViewer(
{
// path: ‘/webviewer/lib’,
initialDoc: ‘https://x9oo-fwyq-gkdq.n7.xano.io/vault/cIQOyqj4/aq1ODkTCEIHvsYY7wZn5nZNjVTo/qCt-vA../sample.pdf’,
},
viewer.current
).then((instance) => {
// instance.UI.loadDocument(
// ‘https://x9oo-fwyq-gkdq.n7.xano.io/vault/cIQOyqj4/aq1ODkTCEIHvsYY7wZn5nZNjVTo/qCt-vA../sample.pdf’,
// { filename: ‘sample.pdf’ }
// );
}