Printing on leap 15 with lexmark printer Optra T610 cuttof while on OpenSuse 13.2 works fine

Hello

I’ve problems with my lexmark printer Optra T610.
In OpenSuse 13.2 printing works fine.
In Leap 42.2/15.0 impression on A4 will cutoff top 1cm and bottom 1.5cm on os 13.2 line at 6mm top and 9mm bottom will print fine.
The ppd files are almost the same on 13.2 and 15.0 even using the same does not change anything.
Margins are strange in ppd file. Setting it lower does not work.
A ps file generated on leap 15 will print fine on os 13.2, a ps file generated on os 12.3 will not print right on leap 15.

Is this a problem of cups?
How can I debug this?
In my opinion cups does not honor margins…

This are orig margins on both systems


*DefaultImageableArea: A4
*ImageableArea Letter/US Letter: "18 36 594 756"
*ImageableArea A4/A4: "18 36 577 806"
*ImageableArea 11x17/11x17: "18 36 774 1188"
*ImageableArea A3/A3: "18 36 824 1155"
*ImageableArea A5/A5: "18 36 403 559"
*ImageableArea B5/B5 (JIS): "18 36 498 693"
*ImageableArea Env10/Envelope #10: "18 36 279 648"
*ImageableArea EnvC5/Envelope C5: "18 36 441 613"
*ImageableArea EnvDL/Envelope DL: "18 36 294 588"
*ImageableArea EnvISOB5/Envelope B5: "18 36 481 673"
*ImageableArea EnvMonarch/Envelope Monarch: "18 36 261 504"
*ImageableArea Executive/Executive: "18 36 504 720"
*ImageableArea Legal/US Legal: "18 36 594 972"

*DefaultPaperDimension: A4
*PaperDimension Letter/US Letter: "612 792"
*PaperDimension A4/A4: "595 842"
*PaperDimension 11x17/11x17: "792 1224"
*PaperDimension A3/A3: "842 1191"
*PaperDimension A5/A5: "421 595"
*PaperDimension B5/B5 (JIS): "516 729"
*PaperDimension Env10/Envelope #10: "297 684"
*PaperDimension EnvC5/Envelope C5: "459 649"
*PaperDimension EnvDL/Envelope DL: "312 624"
*PaperDimension EnvISOB5/Envelope B5: "499 709"
*PaperDimension EnvMonarch/Envelope Monarch: "279 540"
*PaperDimension Executive/Executive: "522 756"
*PaperDimension Legal/US Legal: "612 1008"

on leap 15 there is an additional section


HWMargins: 18 36 18 36
*VariablePaperSize: True
*MaxMediaWidth: 100000
*MaxMediaHeight: 100000
*NonUIOrderDependency: 100 AnySetup *CustomPageSize
*CustomPageSize True: "pop pop pop
<</PageSize  5 -2 roll ] /ImagingBBox null>>setpagedevice"
*End
*ParamCustomPageSize Width: 1 points 36 100000
*ParamCustomPageSize Height: 2 points 36 100000
*ParamCustomPageSize Orientation: 3 int 0 0
*ParamCustomPageSize WidthOffset: 4 points 0 0
*ParamCustomPageSize HeightOffset: 5 points 0 0


I’ve tried a ps file align.ps which prints margins of printer.
Output:
HWMargins 18.0 15.0 18.0 36.0

But even put this settings in HWMargins and ImageableArea* it will not work.

Any idea?

Does this happen when printing from particular applications? Does it only happen with particular types of documents eg PDF files?

It might be helpful for us to know your locale settings as well

locale

It seems to be with ps and pdf files.
oowriter prints fine

locale output


LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_CH.UTF-8
LC_TIME=de_CH.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

  1. OK, this reads like you have some A4 PDF files that are being cropped (top and bottom) when trying to print on letter sized paper. Is that correct?

Paper sizes are defined as follows
Letter= 216 x 279 mm
A4=210 x 297 mm

  1. You can get the page size embedded in a given PDF document using
pdfinfo /parth/to/foo.pdf

*If using KDE, Okular can also show the page size via File > Properties.

  1. Can you print a PDF file without incurring cropping with the lpr command eg
lpr -o fit-to-page foo.pdf
lpr -o fit-to-page media -o media=letter foo.pdf
  1. BTW, it is possible to rescale a PDF using ghostscript. For example, take an A4 PDF file (input.pdf) and rescale as letter sized page format…
gs -sDEVICE=pdfwrite -o fitted.pdf -dPDFFitPage -sPAPERSIZE=letter -dFIXEDMEDIA input.pdf

Verify by viewing and/or examining page size reported by pdfinfo…

pdfinfo input.pdf
pdfinfo fitted.pdf

pdfinfo shows

Producer:       iText 2.1.7 by 1T3XT
Page size:      595 x 842 pts (A4)
PDF version:    1.4
Printer: hp1025nw

Priting from okular cuts off left and right

Printing with lpr
  lpr -o fit-to-page -o media=a4 docu.pdf
  lpr -o fit-to-page docu.pdf
  lpr docu.pdf
all commands print right.
Printer optra T610

Printing from okular cuts off top,left and right

Printer hangs with
  lpr -o fit-to-page -o media=a4 docu.pdf
even with
  lpr docu.pdf

Any ideas?

Ok, so that is an A4-sized document. What paper format is loaded in your Lexmark printer though?

It does seem to be a problem with the printer driver, based on your comparative output with the HP and Lexmark printers. However, I’m not sure why scaling would work with one but not the other, as ‘fit-to-page’ is a standard CUPS processing option.

Printer optra T610

Printing from okular cuts off top,left and right

Printer hangs with
lpr -o fit-to-page -o media=a4 docu.pdf
even with
lpr docu.pdf

Any ideas?

Just had a thought about this - which printer is configured as default? If you send the print data to the wrong printer it will fail of course. You can check that with

lpstat -d

You can specify the destination printer (as reported by ‘lpstat -t’) with the ‘-P’ option…

lpr -o fit-to-page -o media=a4 docu.pdf -P &lt;name_of_printer&gt;[/QUOTE]
*If it's using letter sized paper, the the media value should of course be 'letter' as well.

If you are located in Argentina, why have you set the locale to the US – especially with regard to paper size?
Have you tried using your local locale settings, and just changing the language (and perhaps keyboard) settings for the login session? That is what my multi-lingual users do. All of them use ISO paper sizes 'though (some swap physical keyboards with language, some do not).

We do have an annoyance with a few PDFs that refuse to scal to fit the paper size. Mostly this is with Eventbrite tickets. These require converting to A4 before printing (normally as A5). Non-technical users generally open these with LibreOffice to change the page format.