From 39e1e7f76724156d4f2efeec0362df0103cf327d Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 11 Aug 2017 11:11:56 -0400 Subject: Fix up the printing support in lumina-pdf. Now it respects almost all of the specialized options (collation, copies, reversed order, page range, landscape orientation, etc). --- src-qt5/desktop-utils/lumina-pdf/main.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src-qt5/desktop-utils/lumina-pdf/main.cpp (limited to 'src-qt5/desktop-utils/lumina-pdf/main.cpp') diff --git a/src-qt5/desktop-utils/lumina-pdf/main.cpp b/src-qt5/desktop-utils/lumina-pdf/main.cpp new file mode 100644 index 00000000..f0430fc8 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-pdf/main.cpp @@ -0,0 +1,29 @@ +#include +#include +#include +#include + +#include "mainUI.h" +#include +//#include + +int main(int argc, char ** argv) +{ + //LTHEME::LoadCustomEnvSettings(); + unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); //need pixel-perfect geometries + QApplication a(argc, argv); + LUtils::LoadTranslation(&a, "l-pdf"); + + //Read the input variables + QString path = ""; + for(int i=1; i