The method FilePrinter::psPaperSize used to contain a long
list of hard-coded paper sizes for the different paper formats.
This patch makes the method get the same information
from QPrinter directly, which is much simpler and more
robust, too.
Note that the method is not actually used anywhere in okular,
though, so this change is purely cosmetic.
REVIEW: 130043
Okular was checking for Q_WS_X11 definition (which is not available since Qt 5) to detect CUPS, so detection always fails making CUPS parameters ignored.
REVIEW: 127036
This makes automagically work the printing on printers with
hard-margins since the QPrinter dialog margins are initialized to the printer
hard-margins. If you still want the old and mostly unuseful
behaviour of not having any margin (and thus your printer not printing things on the borders) you
can always set the margins to 0 in the dialog
BUGS: 319476
FIXED-IN: 4.12.0
API and make it call the new API.
CCMAIL: kde-bindings@kde.org
CCMAIL: aacid@kde.org
CCBUG: 194586
svn path=/trunk/KDE/kdegraphics/okular/; revision=1134631
into pdf format and save that. Only enabled in PDF, DVI, and DJVU generators
if ps2pdf is found in the path. Ghostscript is almost always guaranteed to
be installed given many parts of the printing stack depends on it.
Note that resulting PDF or PS file will have the page size as set in the print
dialog and not the page size of the original document, i.e. if an A5 booklet
is printed but the dialog page size is set to A4 then the resulting file will
be A4 and not A5.
svn path=/trunk/KDE/kdegraphics/okular/; revision=897000
1) detectCupsService() finally works because QTCPSocket finally works.
Assumes Cups is on localhost:631 which is a compromise as Qt won't
even tell us if it is using Cups, let alone where Cups is.
2) Duplex printing obeys user selected option from dialog rather than
just guessing.
3) If custom page margins set then respect these
svn path=/trunk/KDE/kdegraphics/okular/; revision=895905
Cups Page and Job Options tabs, and pass these on to lpr.
CCBUG: 160381
This needs to be backported to 4.0 but I don't have a checkout.
svn path=/trunk/KDE/kdegraphics/okular/; revision=817393
When detecting which exe to use, check for these first.
CCBUG: 156639
This should be backported to 4.0, but I don't have a checkout of that.
svn path=/trunk/KDE/kdegraphics/okular/; revision=816881
* Add FilePrinter class to enable printing via postscript files
* DJVU, PDF, and PS backends print FilePrinter
* All backends enable printing of bookmarked pages
* Print and Print Preview actions enabled/disabled depending on backends
printing ability
Note that FilePrinter only works on *NIX platforms with Cups, lpr, or lp.
svn path=/trunk/KDE/kdegraphics/okular/; revision=741990