Print.js: Problem printing with Google Chrome Version 65.0.3325.146

Created on 7 Mar 2018  路  12Comments  路  Source: crabbly/Print.js

Today, I have a problem printing with Google Chrome versi贸n 65.0.3325.146. The page shows white and no charge info.

Thanks.

help wanted

Most helpful comment

It's even simpler than I was thinking. At the moment printJS load a invisible iframe, and focus on int and print the frame right ? I just used a visibility: hidden instead a display: none, and that works again. Can you try that ?

All 12 comments

Which OS and version?

MacOS 10.13.3, Windows 7, Windows 8 and Windows 10

I'm having the same problem with the new Google Chrome v. 65.0.3325.146. Send to print and shows empty preview. OS: MacOS 10.13.3, Win7 to 10.

I just confirmed. Looks like the latest version of Chrome, v65, is not printing any iframe data, therefore a blank page. Not sure what to do about this yet.

Someone found something ?

I have the same problem after updating Chrome V65. Still working on edge.

I found a solution ! I'll put the result here tonight :)

It's even simpler than I was thinking. At the moment printJS load a invisible iframe, and focus on int and print the frame right ? I just used a visibility: hidden instead a display: none, and that works again. Can you try that ?

It's great, It worked for me correctly. Thank you very much.

@igormages Thank you Igor, this did the trick. I had to add height:0 and width:0 to prevent changes in the page layout, since using visibility:hidden doesn't completely remove the iframe from the page. Event with these settings, the iframe may still move the current page up a little. I will try to add a hook method to remove the iframe once the print job is complete.
I already pushed the change to npm. Thanks again.

@crabbly I know this PR is closed but just wanted to add another suggestion. Adding position:absolute takes care of the slight height increase. Doesn't seem to move the page up at all. Still needsheight:0;width:0;.

And when removing the iframe in IE it also avoids the slight page jump which happens when the user is scrolled all the way to the bottom of the page.

Thanks for the fix! :)

@kyriacos Nice!
I'll test it out and implement in the next release.
Thank you, Kyriacos.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

optone picture optone  路  8Comments

galcott picture galcott  路  7Comments

johnknoop picture johnknoop  路  5Comments

DouglasOGarrido picture DouglasOGarrido  路  3Comments

PabloSzx picture PabloSzx  路  5Comments