jordanbyron / prawn-labels

Prawn/Labels: A simple helper to generate labels for Prawn PDFs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Printing labels from different applications results in different spacing.

jfeust opened this issue · comments

When generating PDF's they all look like the same spacing when viewed on screen. When you go to print them however, depending on what application you are printing from, the spacing get's messed up and they do not print properly on the labels.

Apple Preview - Always seems to print OK.
Print from Chrome, Acrobat Reader, etc, causes spacing issues. The other weird thing is that depending on the application, the spacing issues are different.

It seems to print differently from each program.

Here is a screenshot, all generated from the same label PDF, printed from different applications. One of these print fine on 5160 labels (the last one printed from apple preview), all the others don't.

screen shot 2014-11-19 at 11 04 08 am

@sandal have you ever had reports of this happening with other prawn generated PDFs? I only have Preview.app installed and haven't encountered these issues before.

@jordanbyron The spacing is also incorrect when opening the PDF in Chrome and printing from there. Perhaps you could try that if you're looking to recreate the issue.

@jfeust: Have you verified that the printer margin settings are identical in all the applications you're trying?

@jfeust: If you're happy to share your source PDFs, I'm happy to try and recreate.

Here is one with sample data that we are also seeing the issue with.

http://istemporary.com/files/AddressLabels-20141119.pdf

Ideally print this from Acrobat Reader as that seems to be where our users are having the most trouble.

Just looking at the preview given by Chrome, I'm guessing this is a print scaling issue, because it's assuming your document doesn't fit within the print margins. If you're using a semi-recent version of Prawn (0.14, 0.15, or any 1.x release), try passing :print_scaling => :none when creating your document.

More details here:
https://github.com/prawnpdf/prawn/wiki/CHANGELOG#printscaling-can-now-be-disabled-in-pdfs

Hey guys. This issue was caused by our users doing "scale to fit" and other print scaling options which seem to be default selected when printing PDF. Adding print_scaling: :none didn't help in that sense. I will just be advising all users to make sure to turn off any print scaling in their print dialog and just do "actual size". Also we noticed some "cutting off of text" due to inkjet printers being slighly "off" in their paper feed. I've solved this by reducing the font size and adding a bit of top padding to the labels.

Thanks and consider this issue closed.

@jfeust how did you add the padding to the labels? I'm running up against the same issue.

Specifically I'm hoping to add a bit of padding to the left because that's where I'm noticing the cutoff.