I need to load dynamic pdf, But i was getting error but it was working while loading file
Error: Invalid XRef stream header main.js:115144:6
XRef_readXRef@http://localhost:8100/build/main.js:161171:10
XRef_parse@http://localhost:8100/build/main.js:160817:22
PDFDocument_setup@http://localhost:8100/build/main.js:167869:7
PDFDocument_parse@http://localhost:8100/build/main.js:167765:7
LocalPdfManager_ensure/<@http://localhost:8100/build/main.js:168032:19
t@http://localhost:8100/build/polyfills.js:3:11329
LocalPdfManager_ensure@http://localhost:8100/build/main.js:168027:14
BasePdfManager_ensureDoc@http://localhost:8100/build/main.js:167979:14
loadDocument/<@http://localhost:8100/build/main.js:168460:9
Oinvoke@http://localhost:8100/build/polyfills.js:3:9092
NgZoneonInvoke@http://localhost:8100/build/main.js:36644:28
Oinvoke@http://localhost:8100/build/polyfills.js:3:9030
Orun@http://localhost:8100/build/polyfills.js:3:6462
h/<@http://localhost:8100/build/polyfills.js:3:4581
OinvokeTask@http://localhost:8100/build/polyfills.js:3:9712
NgZoneonInvokeTask@http://localhost:8100/build/main.js:36635:28
OinvokeTask@http://localhost:8100/build/polyfills.js:3:9640
OrunTask@http://localhost:8100/build/polyfills.js:3:7064
i@http://localhost:8100/build/polyfills.js:3:3664
t/this.invoke@http://localhost:8100/build/polyfills.js:3:10876
@sabarinathancs could you provide part of your code that sets the PDF-viewer so that i can see what are you setting there and what's triggering the issue
CORS should be configured properly on the server that serves PDF
I fixed CORS issue while informing server Team,
I need to show entire PDF file in scroll view how add show that ?
Closed