I have the below HTML
<iframe id="pdfFrame" src="/resource/pdfjs/web/viewer.html" width="100%" height="100%" class="pdfFrame"
onload={generatePdf}></iframe>
JS:
generatePdf() {
const { jsPDF } = window.jspdf;
const doc = new jsPDF({
encryption: {
userPermissions: ["print", "modify", "copy", "annot-forms"]
}
});
doc.text('Hello World!', 20, 20);
var base = doc.output('datauristring').split(',')[1];
this.template.querySelector('iframe')
.contentWindow.postMessage(base, window.location.origin);
}
It renders as below
There is no download or print button available on the PDF viewer. could someone please suggest how to get these buttons on the screen?