Page 1 of 1
Print PDF events
Posted: Sun Jan 28, 2024 1:28 pm
by michal@dorfin.waw.pl
When user prints PDF from within the Javascript browser opens default printing window. Is there any way to get the info that this form has been opened and closed ? Do we have any event that we could process ?
The onJsDialog and onFileDialog doesn't work in this case.
Re: Print PDF events
Posted: Sun Jan 28, 2024 5:10 pm
by salvadordf
Hi,
CEF exposes several events related to the printing process but the event that you need only works in Linux.
There are two options :
- Use JavaScript events : https://stackoverflow.com/questions/18325025/how-to-detect-window-print-finish
- Use the DDetours component to hook the Windows API function that opens the print dialog. https://github.com/MahdiSafsafi/DDetours