My main goal is the following:
1. PHP generates PDF using fpdf <-- OK
3. PDF prints silently using emb java <-- OK
I tried window.onload() in java, but this seems to fire once the window is loaded. Means, that the pdf itself is not loaded and hence the print process has not started.
I'm currently exploring to use setAction(didPrint, action) to create a robust trigger -
//Open the print dialog or start printing immediately on the standard printer
$param=($dialog ? 'true' : 'false');
So, this prints and generates the alert box.
But, I'm clueless on how to fire a command to call a function in my java script....
Help is appreciated.
Retrieving data ...