I am getting pdf from API as a stream of data. I'm converting it into a blob and opening it in the Object tag. The PDF is opening but the title is like a2e08787-0376-430b-b7c8-3581b8dd3900
. Can I change it anyhow or make it disappear? I know I can disable toolbar but that will disable other features like page navigation and printing.
<ion-row class="fullScreen">
<ion-col>
<object class="fullScreen" id="pdfframe" [data]="pdfSrc" type="application/pdf"></object>
</ion-col>
</ion-row>
downloadPDF(id) {
this._service.downloadFileWithRx(id).subscribe(doc => {
if (doc.type == 'application/pdf') {
let url = window.URL.createObjectURL(doc);
console.log(url);
this.pdfSrc = this.sanitizer.bypassSecurityTrustResourceUrl(url);
}
},
error => console.log(error)
)
}