Print.js: can't load properly a PDF on Safari browsers

Created on 4 Jan 2018  ·  8Comments  ·  Source: crabbly/Print.js

When load a PDF on chrome show correct and properly the PDF, but in Safari cut a little the header, so the pdf is not show properly.
This is the PDF header rendered on chrome
screen shot 2018-01-03 at 5 23 49 pm
This is the PDF header rendered on safari
screen shot 2018-01-03 at 5 23 12 pm
Both are same PDF and with other pdf is the same problem. If there is any idea why and what's happend!? please let me know!

help wanted

Most helpful comment

@xtornasol512 Hey Jesús, I just tested and confirmed the behavior. Looks like there is a margin issue when printing PDF files using Safari. I'm not sure why this is happening. Will try to find a solution for it.

All 8 comments

@xtornasol512 Hey Jesús, I just tested and confirmed the behavior. Looks like there is a margin issue when printing PDF files using Safari. I'm not sure why this is happening. Will try to find a solution for it.

@xtornasol512 Looks like Safari is printing pdf's properly now. Could you give it a try from the documentation page? It uses the latest package version.
http://printjs.crabbly.com/

Also, my Safari version is 11.0.2. If you are still having issues, please try to update your browser first. Let me know how it goes. Thx.

Still have this problem, first try with just update safari browser to 11.0.3 Nothing change.
Then update the printJS files printjs.min.js and printjs.css.min
But I still have the problem with the margins on pdf on safari
screen shot 2018-02-14 at 1 30 10 pm

issue_printjs

+1
Also dynamically added content like watermarks or texts are missing in print window in Safari. Can you please look at it?
Code:
$http.get('urltoserver', {responseType: 'blob'}).then(function (data) { printJS({printable:URL.createObjectURL(data.data), type:'pdf', showModal:false}); });
Please try this file:
05.03.01 Follow-up Letter.pdf

Hey, has been pass so much time! But now we have updated our PDF, and adjust the margins manually and almost resolve the problem.
However the problem also appear when print the pdf physically, some printers didn't give us the pdf with the proper margins and cut it. So thats why we adjust the margins and fix the problem on printers, we tried again with PrintJS and now there is only a little margin that cut Safari but the PDF is printed on good conditions.
screen shot 2018-09-10 at 6 15 10 pm

Looks like Safari is still not processing margins correctly. I'm not sure how to fix this.

Sure, no problem @crabbly, but for the moment I recommend to others to adjust theirs pdfs with the properly margins. I'm not justifying Safari to do that, but remember us to adjust the margin for printers!

Closing this in favor of #33. Keeping all browser compatibility issues under that ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnknoop picture johnknoop  ·  5Comments

raymond8080 picture raymond8080  ·  4Comments

zhuyinjing picture zhuyinjing  ·  7Comments

Orcinuss picture Orcinuss  ·  8Comments

GuoSirius picture GuoSirius  ·  8Comments