LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-14-2020, 02:49 AM   #1
grabrail
LQ Newbie
 
Registered: Dec 2020
Posts: 4

Rep: Reputation: Disabled
Setting up printer for custom paper size in CUPS software


Hi

I have a linux laptop running Mandriva Linux 2009.0. This laptop runs some specialist software to print car licence plates.

I am using an Oki C5800 printer for this, and had to compile a driver for it using foo2hiperc.

The driver compiled fine and I can run test prints from the printer no problem at all.

To be able to print the number plates I need to select custom paper size for the manual feed tray. In the Print Queue I can do this no problem.

However, the software uses the CUPS software to choose and set up the printer, when I set it up The option of custom paper size isn't there, all other available paper sizes are that are in the print queue, but not the custom one.

Other printers and drivers I have used previously all have the option for custom paper size within the CUPS software, just not this one.

Any ideas on how I can get the custom size to be available?

Linux Mandrake 2009.0
foo2hiperc print driver
CUPS 1.3.10
 
Old 12-14-2020, 11:49 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
I would look at the ppd file (located in the /etc/cups-ppd/ directory). There are paper sizes defined there, and it should be possible to edit this to provide for another.
 
Old 12-14-2020, 11:51 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
For example
https://stackoverflow.com/questions/...sizes-to-a-ppd
 
Old 12-15-2020, 02:54 AM   #4
grabrail
LQ Newbie
 
Registered: Dec 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have looked at the PPD file and modified as necessary, When I set up a custom paper size the printer errors with "unknown"

If I modify the paper size for A4 for example, the printer still prints to A4 dimensions as it seems to be using the settings held within the printer itself rather than the PPD settings. I have tried offsets and everything but nothing seems to work.

I don't understand why the print queue has custom as a selectable option but in CUPS it doesn't.
 
Old 12-15-2020, 03:30 AM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Can you set the custom paper size on the printer itself?
 
Old 12-15-2020, 04:05 AM   #6
grabrail
LQ Newbie
 
Registered: Dec 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
yes, but I don't have the option to choose custom when sending the print job, It only prints if I select one of the standard default paper sizes. in CUPS custom does not appear as a selectable option
 
Old 12-15-2020, 01:07 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
With KDE (Qt-based applications), I note that what's offered does depend on the PPD for a particular printer....perhaps what you observe is a limitation of the application itself?

FWIW, printer-specific options (defined in the printer's PPD file) can be queried using
Code:
lpoptions -p <printer_name> -l
 
Old 12-15-2020, 04:17 PM   #8
grabrail
LQ Newbie
 
Registered: Dec 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yeah when I modify the PPD file the print queue on Mandriva gives me the correct options, custom settings etc. However the CUPS application doesn't not seem to recognise the custom settings. It's very weird as CUPS is part of Linux
 
Old 12-15-2020, 05:06 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
It is the printing subsystem for most modern Linux environments. When you select the custom page size and attempt to print, where is the error reported?
 
Old 12-15-2020, 05:11 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Try using another application (eg GUI editor or graphics app) to test printing with the custom page size. Any different?
 
Old 12-15-2020, 06:49 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,720

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
The common printer dialog box was developed around the same time as version 2009.0 but I am not sure what Mandriva used back then. The dialog box is part of the desktop and not the cups daemon.

This could be the reason there are differences.

As a workaround could you save the print output to file which is a PostScript document and print successfully from the command line using lpr and its page size options?

I assume your application is not supported by a more current distribution?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with printing on custom size paper beje Linux - Software 11 04-01-2020 05:45 AM
Cups command line printing with correct paper size bepa Linux - Software 5 09-29-2016 01:05 PM
How To create custom media (Paper Size) jaapee Linux - Newbie 1 02-12-2014 05:30 PM
print A4-size pdfs to letter-size paper linuxqueric Linux - Newbie 2 09-30-2008 04:30 PM
HP DesignJet 1050C paper size problem with CUPS dekers Linux - General 1 01-19-2006 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration