Posted 27 February 2021, 5:05 am EST
I am using Angular 10. I have a simple requirement to show a local pdf file streamed via nodejs server side code. I don’t see any errors in console. It just stays on - “Loading…” or if I provide a static file reference, it adds $pdf at the end and complains about 404 which is rightly so.
<wj-pdf-viewer #pdfViewer
serviceUrl="https://dev.bkvlocal.com/assets"
[filePath]="'pdf/sample.pdf'">
</wj-pdf-viewer>
It should not be this hard to view a pdf that is streamed through a URL. I have checked domain and license and all is good.