I'm struggling to display my PDF file on a viewer using a URL in TypeScript. I am utilizing ngx-extended-pdf-viewer.
Below is a snippet 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>
An error message is displayed in the viewer:
PDF.js v2.1.266 (build: 81f5835c)
Message: Failed to fetch
within the PDF viewer.
While I am able to view the PDF by placing it in the assets folder, the URL doesn't seem to work. Instead, an empty frame is shown. What could I be doing wrong?