I am using the ng2-pdf-viewer to display a pdf in my angular app. However, the viewer waits for the pdf to be downloaded completely and then displays it. The server sends me the pdf data in a byte array form. Is there a way to show the pdf while it is getting fetched from the server simultaneously ?
PS: This is how I am fetching the data and assigning it to the src attribute
this.httpClient.get(`{url}`,{'responseType' : 'arraybuffer'})
.subscribe((file: ArrayBuffer) => {
this.pdfSrc = file;
}