You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CEF Python
I have a PDF Viewer by embedded cefpython3 V66.1 in a PyQt app which generate automatic reports. I need to control when a pdf file is saved and I would like to prevent users from pressing the "print" button from the toolbar of the PDF Plugin. I tried by executing a javascript code on DOM ready overriding the window.print function but that's not working, when I inspect the HTML generated I see an embed tag only, so I can't hide the button by executing 'getElementByID(...).style.visible'. Is there a way to do that? I achieve to disable downloads by adding the key/value to the 'settings' dict and passing it to the cef.Initialize but i didn't find a similar solution for the print button.