Hi,
Hopefully this isn't outdated/irrelevant/etc... In a specific PDF file, I found a bug that raises an error and prevents the entire PDF from rendering.
If it matters, I was using viewerjs.
JS FILE: pdf.worker.js
FUNCTION: addDefaultProtocoltoUrl()
Error: cannot call indexOf : undefined is not a function
My fix: check that the url exists.
if ( url && url.indexOf ...)
Let me know if you need further information, I did the minimal amount of work to get the file rendering.
Hi, Hopefully this isn't outdated/irrelevant/etc... In a specific PDF file, I found a bug that raises an error and prevents the entire PDF from rendering.
If it matters, I was using viewerjs.
JS FILE: pdf.worker.js FUNCTION: addDefaultProtocoltoUrl() Error: cannot call indexOf : undefined is not a function
My fix: check that the url exists. if ( url && url.indexOf ...)
Let me know if you need further information, I did the minimal amount of work to get the file rendering.
Thanks!