Results 1 to 8 of 8

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

  1. #1
    Join Date
    Sep 2008
    Location
    Argentina
    Posts
    145

    Default 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

    Code:
    *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
    Code:
    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?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

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

    Quote Originally Posted by tkmbe View Post
    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.
    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
    Code:
    locale
    openSUSE Leap 15.0; KDE Plasma 5

  3. #3
    Join Date
    Sep 2008
    Location
    Argentina
    Posts
    145

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

    Quote Originally Posted by deano_ferrari View Post
    Does this happen when printing from particular applications? Does it only happen with particular types of documents eg PDF files?
    It seems to be with ps and pdf files.
    oowriter prints fine

    Quote Originally Posted by deano_ferrari View Post
    It might be helpful for us to know your locale settings as well
    Code:
    locale
    locale output
    Code:
    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=

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

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

    Quote Originally Posted by tkmbe View Post
    It seems to be with ps and pdf files.
    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

    2. You can get the page size embedded in a given PDF document using
    Code:
    pdfinfo /parth/to/foo.pdf
    *If using KDE, Okular can also show the page size via File > Properties.

    3. Can you print a PDF file without incurring cropping with the lpr command eg
    Code:
    lpr -o fit-to-page foo.pdf
    Code:
    lpr -o fit-to-page media -o media=letter foo.pdf
    4. 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...
    Code:
    gs -sDEVICE=pdfwrite -o fitted.pdf -dPDFFitPage -sPAPERSIZE=letter -dFIXEDMEDIA input.pdf
    Verify by viewing and/or examining page size reported by pdfinfo...
    Code:
    pdfinfo input.pdf
    Code:
    pdfinfo fitted.pdf
    openSUSE Leap 15.0; KDE Plasma 5

  5. #5
    Join Date
    Sep 2008
    Location
    Argentina
    Posts
    145

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

    pdfinfo shows
    Code:
    Producer:       iText 2.1.7 by 1T3XT
    Page size:      595 x 842 pts (A4)
    PDF version:    1.4
    Code:
    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.
    Code:
    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?

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

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

    Quote Originally Posted by tkmbe View Post
    pdfinfo shows
    Code:
    Producer:       iText 2.1.7 by 1T3XT
    Page size:      595 x 842 pts (A4)
    PDF version:    1.4
    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.
    openSUSE Leap 15.0; KDE Plasma 5

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,391
    Blog Entries
    1

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

    Code:
    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
    Code:
    lpstat -d
    You can specify the destination printer (as reported by 'lpstat -t') with the '-P' option...
    [CODE]lpr -o fit-to-page -o media=a4 docu.pdf -P <name_of_printer>[/QUOTE]
    *If it's using letter sized paper, the the media value should of course be 'letter' as well.
    openSUSE Leap 15.0; KDE Plasma 5

  8. #8
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

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

    Quote Originally Posted by tkmbe View Post
    It seems to be with ps and pdf files.
    oowriter prints fine



    locale output
    Code:
    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=
    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.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •