I cannot get my pdf to display on viewer via url in typescript. I am using ngx-extended-pdf-viewer
Here is an example of my code with the URL replaced.
<ngx-extended-pdf-viewer
*ngIf="!isFirefox"
[src]="'http://www.childrensbooksforever.com/Childrenpics/A%20COOL%20KID%20LIKE%20ME.pdf'"
useBrowserLocale="true"
backgroundColor="#000000"
height="100%">
</ngx-extended-pdf-viewer>
Error message in the viewer:
PDF.js v2.1.266 (build: 81f5835c)
Message: Failed to fetch
in the pdf viewer.
I can view the pdf if i place it in the assets folder but the url doesn't work. An empty frame is shown. What am I doing incorrectly?