Force paper size in CUPS

I have a CUPS server with several end users. The problem is that the printer stops printing if someone trys to print in letter size. (You have to insert letter paper or abort the print job on the printer.)

No, I’m looking for a way to force printing jobs to A4 paper size.

Any idea how to do this? Maybe with custom cups filters, but I don’t know how this is done.

On 2010-10-28 00:36, Fruchtratte wrote:
>
> I have a CUPS server with several end users. The problem is that the
> printer stops printing if someone trys to print in letter size. (You
> have to insert letter paper or abort the print job on the printer.)
>
> No, I’m looking for a way to force printing jobs to A4 paper size.

It should be better to automatically abort such jobs in cups, and inform the user to change paper
size - depending on what they print, the job can reformat to fewer pages.

But I don’t know how to do this. I’m interested in this, too…

Just a note: this is the network/internet forum, and I don’t see how this question relates here. I
think the thread should be moved, perhaps to the application forum.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Carlos E. R. wrote:

> On 2010-10-28 00:36, Fruchtratte wrote:
>>
>> I have a CUPS server with several end users. The problem is that the
>> printer stops printing if someone trys to print in letter size. (You
>> have to insert letter paper or abort the print job on the printer.)
>>
>> No, I’m looking for a way to force printing jobs to A4 paper size.
>
> It should be better to automatically abort such jobs in cups, and inform
> the user to change paper size - depending on what they print, the job can
> reformat to fewer pages.
>
> But I don’t know how to do this. I’m interested in this, too…
>

Can be harder than it sounds… but IDEALLY, changing what your *.ppd files
say about your printers SHOULD result in clients knowing what they can and
cannot do papersize wise. Why is this “hard”?.. well… it sort of
depends upon the clients doing the “right” thing with the data that is
presented to them. With that said, I believe that in general, this will
work.

There might be some tools on the web that might allow for easy customization
of ppd files… otherwise, you can make a copy and try to do manual edits
and test your changes. You’ll find your ppd files for your printers in the
/etc/cups directory.

On 2010-10-28 15:44, Chris Cox wrote:

> Can be harder than it sounds… but IDEALLY, changing what your *.ppd files
> say about your printers SHOULD result in clients knowing what they can and
> cannot do papersize wise. Why is this “hard”?.. well… it sort of
> depends upon the clients doing the “right” thing with the data that is
> presented to them. With that said, I believe that in general, this will
> work.

The problem is that this needs to be configured on each client machine. The server only gets a
postscript file, it does not enforce rules - I think.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Ooooh, Fruchtratte, I know what you’re in. I’ve had this in an office network I manage with a Canon ir2020 copier, used as a printer. After recent updates of the driver the problem has gone completely, even with received docs.

Is this from OO.o apps ? Create a new document Concept with A4, printersettings A4, save the concept, set it to default.
In FF and Thunderbird you can set printing to A4.
Check /etc/papersize
See that Language and country are set properly on the desktop.

What’s the printer anyway?

The printer is a Dell 5110cn.
I don’t have access to the client maschines, therefore I have to force papersize to A4 (or discard jobs) on the server. Most of the clients are printing via SAMBA anyway, which makes it even more complicated to change anything there.

I’m also using tea4cups. So if anybody has a solution with this tool, I will give it a try.