-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with gstoraster with passing specific dimensions on Zebra with regular PPD #484
Comments
Your PPD file is badly broken:
As the errors are on the page size you are actually using it is very probable that Ghostscript got confused. If you got the PPD file in this state from the printer manufacturer, please report a bug. If you added page sizes by yourself, make sure that all lines for each added page size are correct and that If you use |
Oh, yeah, seems that i was testing, if adding custom page sizes gives any better luck. But it turned out that it did not matter, the ghostscript always did landscape rotation. Basically this is the one - https://opensource.apple.com/source/cups/cups-136/cups/ppd/zebra.ppd |
I have found the bug now and fixed it, in Ghostscript's CUPS/PWG/Apple Raster output device. The fix will be included in the next Ghostscript release. I will also apply the patch to the Ghostscript package in Ubuntu, so it will be also included in the upcoming 22.10. The problem was that the custom page size you have requested got matched against the PPD's page sizes and your PPD contains an 8x4in size and no 4x8in size. So your requested custom size got matched against the 8x4in size and so your page rotated. Now I have chabged the Ghostscript code to not try to match custom page sizes against the PPD's sizes. |
… PPD If for a job a custom page size is selected, indicated by something like "-scupsPageSizeName=Custom.4x8in" or "-scupsPageSizeName=Custom", do not try to match the requested page size, given by standard Ghostscript parameters like "-dDEVICEWIDTHPOINTS=... -dDEVICEHEIGHTPOINTS=...", with the supported page sizes defined in the PPD file. This avoids unwished rotations as reported in OpenPrinting/cups-filters#484 and also unwished size mismatches if the custom size is very close to a size defined in the PPD file.
Would this mean, that adding |
Yes, it had worked if the entry had been complete and correct (consisting of a line for each PageSize, PageRegion, PaperDimension, and ImageableArea). With this (please check with With the Ghostscript fix the page size entries in the PPD do not matter any more as the custom size is not matched against them any more. |
Okay, managed to update "base" driver in /usr/share/cups/drv/sample.drv , which generates the PPDs for added printers, just added 2 lines.
and under ZPL Label driver
And this seem to work with current GS version. Really appreciate your knowledge and your help! |
libcupsfilters 2.x (cfFilterGhostscript() filter function) requires Ghostscript 10.00.0 for a "cups"/"pwgraster"/"appleraster"/"urf" output device with full support for PPD-less use. Ghostscript 10.01.0 is recommended, to fix #484 Updated comments in cupsfilters/ghostscript.c and README appropriately.
Also added patch from upstream (to be included in 10.01.0) to not match custom page sizes against the sizes defined in the PPD file when the CUPS/PWG/Apple Raster output device is used (Upstream commit 387f09416, cups-filters issue OpenPrinting/cups-filters#484).
Also added patch from upstream (to be included in 10.01.0) to not match custom page sizes against the sizes defined in the PPD file when the CUPS/PWG/Apple Raster output device is used (Upstream commit 387f09416, cups-filters issue OpenPrinting/cups-filters#484).
Also added patch from upstream (to be included in 10.01.0) to not match custom page sizes against the sizes defined in the PPD file when the CUPS/PWG/Apple Raster output device is used (Upstream commit 387f09416, cups-filters issue OpenPrinting/cups-filters#484).
Printfile:
cf2.pdf
4x8 label on regular Zebra printer PPD
STOCK.ppd.zip
Trying to print 4x8" label on similar Zebra but with a 4x8 paper loaded.
Ghostscript randomly decides to always rotate such dimensions in a landscape? Why?
cf2.apple.zip
And it's not possible to override, if i add additional
landscape
attribute, then it is just flipped by 180 degrees.I have a feeling that this might not be related to cupsfilter, but the ghostscript cups driver itself?!
The text was updated successfully, but these errors were encountered: