Useless paper sizes

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

Useless paper sizes

Post by alex666 » Wed Mar 08, 2017 5:19 pm

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: 75
Joined: Thu Nov 04, 2010 11:50 am

Re: Useless paper sizes

Post by broadstairs » Thu Mar 09, 2017 9:20 am

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: 1800
Joined: Fri Oct 06, 2006 8:02 am

Re: Useless paper sizes

Post by zedonet » Fri Mar 10, 2017 3:29 pm

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 » Mon Aug 07, 2017 9:51 am

OK, Im late...
But thanks!

Post Reply