Open RahulTejaTeepalapudi opened 1 year ago
Fix for printJS(div_id,'html')
function printJSFixed(options) { if (-1 !== navigator.userAgent.toLowerCase().indexOf('crios') || -1 !== navigator.userAgent.toLowerCase().indexOf('fxios')) { var newWindow = window.open('', '_blank'); newWindow.document.write($('#'+options).html()); newWindow.print(); } else { printJS(options,'html'); } }
Hi there, I need help on this issue on IOS Devices - iPad and iPhone - chrome and safari browsers I am using Print-JS for printing of images. Below is my code of how I am calling it.
Calling printJS:
Below is the iFrame that Print-JS library has injected into the DOM
iFrame injected:
Output on iPad Air Chrome browser:
Issue: Entire page is printed instead of actual image to print.
Output on iPhone 14 Pro Max Safari browser
Issue: Blank white pages are getting printed instead of actual Image.