Useless paper sizes

Post Reply
alex666
Posts: 3
Joined: Wed Mar 08, 2017 5:06 pm

Useless paper sizes

Post by alex666 »

Hello,
Adding custom paper sizes is a nice feature.
But how to remove useless "standard" default paper sizes?
(Tired to excavate in never-ending drop-down lists of exotic paper sizes...)
Exotic for me, ok, but who uses all supplied paper sizes ???
Thanks
broadstairs
Posts: 85
Joined: Thu Nov 04, 2010 11:50 am

Re: Useless paper sizes

Post by broadstairs »

It would be nice to know what you are using in terms of programs and desktop? There is an issue with KDE Plasma5 QT5 which does not handle printer paper sizes correctly, so any program which uses QT5 is messed up when selecting paper even when just using CUPS and not TurboPrint. Anything which does not use QT5 seems to work OK.

Stuart
zedonet
Site Admin
Posts: 2156
Joined: Fri Oct 06, 2006 8:02 am

Re: Useless paper sizes

Post by zedonet »

Hello alex666,

this is possible but a bit complicated:

You can remove predefined page sizes by editing TurboPrint's printer description file /usr/share/turboprint/printers/<printername>.tpp and remove one or several sections starting with "Size", e.g. the following section

Code: Select all

[Size6]
Name=B5
WNumber=13
ANumber=17
Size=6929,9843
Margins=134,134,118,200
Param=0,0,0,0
After editing the .tpp file you must renumber the entries so that the numbers after "Size" are continuous again.

Finally, execute

sudo tpsetup --update

so that the pagesize entries are also removed from the PPD files of the Linux printing system.
alex666
Posts: 3
Joined: Wed Mar 08, 2017 5:06 pm

Re: Useless paper sizes

Post by alex666 »

OK, Im late...
But thanks!
Post Reply