How can I force pdf to be printed at the user end? I've pdf file and I use iframe to insert it and print out:
<iframe id="iFramePdf" src="/rates.pdf" style="display:none;"></iframe>
<script type="text/javascript"> // print pdf in iFrame
function printTrigger(elementId) {
var getMyFrame = document.getElementById(elementId);
getMyFrame.focus();
getMyFrame.contentWindow.print();
}
</script>
But because of FF browser settings it failed to print. I know of this soltion to this issue and I've fixed the issue in my FF browser. But I can't fix FF settings at user browser.
Can I bypass it somehow? How to print pdf any other way?
Update
The following image shows what setting I've done to make pdf to be printable in FF:
Can I make *.pdf file prinable bypassing browser settings?