I am using an iframe in my component.html which render a src from a sanitizer url as follows.
<iframe name="iframe1" id="iframe1" [attr.src]="dataLocalUrl" width="100%" height="80%" type="application/pdf">
content...
</iframe>
and in my component.ts has passed the url as follows.
loadPdf() {
this.myService
.downloadMyPdf(sessionStorage.getItem('selectedTemplateId'), this.dataShareService.getmyData())
.subscribe(
(res) => {
this.dataLocalUrl = this.sanitizer.bypassSecurityTrustResourceUrl(window.URL.createObjectURL(res));
},
)
I need to hide the tool bar or the print / download options showing in the iframe. I have tried #toolbar=0
but it does not work.
Any idea how to do that? (Using CSS or attributes also fine)