Hi there,
Has anyone figured out how to get the print dialog to auto-open when a wkhtmltopdf generated PDF file is opened? I'm using PDF-XChange Viewer and Javascript is enabled.
I've tried embedding the following code in the HTML:
<script type="text/javascript">
window.onload = function () {
print();
};
</script>
I've also set these switches:
--enable-javascript --javascript-delay 10000 --debug-javascript
Along with either: --run-script window.onload=function(){print();};
Or: --run-script print();
None of these things are working. Any help greatly appreciated.
Cheers,
Elliot