Closed tresf closed 8 years ago
Got it...
config = qz.configs.create("DYMO LabelWriter 450 Turbo",
{
size: {width: 2.25, height: 1.25}, units: 'in',
colorType: 'grayscale', interpolation: "nearest-neighbor"
}
);
colorType: 'grayscale'
seems to be mandatory for this printer or else printout is pixelated, light and improperly dithered.215px
by 121px
) needed to be shrunk by 2 pixels (now 215px
by 119px
) to make it closer to 2.25in
x 1.25in
proportions (thanks @bberenz)nearest-neighbor
to prevent pixel smoothing on the barcode. Pixel smoothing could render the barcode un-scannable after it's been stretched to 300dpi.Worth noting.... When the printer was paused, the selected-page-size (Document Properties, Paper/Quality, Advanced) could be observed as Form 30334 - 2 1/4 x 1 1/4
unless explicitly set. In testing this form is nearly identical to 13354 - Multipurpose
except the additional margins were distributed slightly differently. In both cases, the print driver was correctly selecting the correct page size, but seems to prefer 30334
by default unless 13354
is explicitly set in the printer properties.
Hmm... I still think there is some room for improvement here...
I took a ruler to the output of some tests and tweaked the image size and was able to help the right margin however the top margin still seems to be wrong. Here's a comparison against a plain black HTML page printed with Google Chrome.
I'm actually getting the same margins qz vs chrome:
Can you verify the default page type set on your label printer? As it does affect where the printer thinks the top-left 0,0
is located
@bberenz thanks for testing. Interesting that we get different output.
I tried various default page types and yielded nearly identical results (In recent testing I was no longer to reproduce our findings that the margins were drastically changed between page types). Which page type yielded the results in your testing?
I'd like to use the exact same sample and configuration as you're using and go from there. Can you email me the image and the sample.html?
The label size
2.25in x 1.25in
seems to have scaling/margin issues with the Dymo LabelWriter driver.Debug logs:
Forcing 11354 paper size: