Dymo LabelWriter 450 prints blank labels with custom PageSize (regression between 2.2.1-2.1 and 2.2.1.r28)

Open
#275 4 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c, linux

Research direction

Start from the Ghostscript filter in libcupsfilters (the code behind cfFilterGhostscript, see the -dDEVICEWIDTHPOINTS=117 -dDEVICEHEIGHTPOINTS=252 -scupsPageSizeName=41.32x88.9mm line in the log) and trace how a PageSize=Custom.WxH option is parsed and turned into device options versus a named media. Compare the handling of the .HWMargins/Margins setpagedevice snippet between 2.2.1-2.1 and r28, using git log/git bisect across those tags since r23 was not tested. Done means a custom-size job produces non-blank output while lp -o media=w118h252 still works, verified against the Dymo raster2dymolw path described in the issue.

Written by the indexing model from the issue text.

Description

Summary
A Dymo LabelWriter 450 prints blank labels when the job requests a custom
page size, using the old Dymo CUPS driver (dymo-cups-drivers 1.4.0.5,
filter raster2dymolw). The same job with the named size prints correctly.
Downgrading libcupsfilters fixes it.

Environment
❯ pacman -Q libcupsfilters cups cups-filters ghostscript dymo-cups-drivers glabels
-libcupsfilters 2.2.1-2.1
-cups 2:2.4.20-1
-cups-filters 2.0.1-3.1
-ghostscript 10.08.0-1.1
-dymo-cups-drivers 1.4.0.5-5.1
-glabels 3.4.1-14.1

Steps to reproduce

  1. Print a label from gLabels to the LabelWriter 450.
  2. gLabels sends PageSize=Custom.116.22x252.28 (41 x 89 mm in points).
  3. Labels feed but come out blank.

Working comparison
Printing the same content as a PDF with the named size prints correctly:
lp -d DYMO-LabelWriter-450 -o media=w118h252 output.pdf
Printing with the custom size prints blank:
lp -d DYMO-LabelWriter-450 -o PageSize=Custom.116.22x252.28 output.pdf

Relevant debug log (Job 223)
PageSize=Custom.116.22x252.28 number-up=1 Resolution=300dpi
DymoPrintDensity=Normal DymoHalftoning=ErrorDiffusion DymoPrintQuality=Text
cfFilterGhostscript: gs ... -r300x300 -dDEVICEWIDTHPOINTS=117
-dDEVICEHEIGHTPOINTS=252 ... -scupsPageSizeName=41.32x88.9mm
-c '<</.HWMargins[4.081890 4.308661 2.891342 16.554337] /Margins[0 0]>>setpagedevice'

Notes

  • The setup worked for years until a recent update.
  • I downgraded libcupsfilters to 2.2.1-2.1 and gLabels printed correctly again.
  • I have not tested the versions between 2.2.1-2.1 and r28 (including r23).
  • I'm not sure whether the fault is in the filter chain or in how the old
    Dymo driver handles the page it receives. Happy to test patches.
Dominant language
C
Stars
20
Forks
89
Avg merge
13h 37m
Merged PRs (30d)
50

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenPrinting/libcupsfilters

All issues in OpenPrinting/libcupsfilters

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.