How to trigger print if I am using dompdf stream and displaying using blob.
I am using laravel dompdf and vuejs.
I am able to display pdf in modal.
Now I Need to open print dialogue using my print button not from pdf.(Its client requirement)
I tried some solution like :
- https://stackoverflow.com/a/12444702 (saying "document is not ready to print", obviously print() triggers before pdf loading.)
- https://stackoverflow.com/a/16239785 (Goes to infine loop always get
undefined
) - https://stackoverflow.com/a/6010113 (Only works in chrome, in firefox
Error: Permission denied to access property "print"
)
Please help me to achieve this.