From f36488c1b790cdb34e212a71c97ffd94310e6909 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 6 Mar 2021 16:42:13 +0100 Subject: [PATCH] Add format selection for office formats, if auto --- src/ippprinter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ippprinter.cpp b/src/ippprinter.cpp index 7e8f59b..cfa8fff 100644 --- a/src/ippprinter.cpp +++ b/src/ippprinter.cpp @@ -314,6 +314,10 @@ QString targetFormatIfAuto(QString documentFormat, QString mimeType, QJsonArray { return firstMatch(supportedMimeTypes, {Mimer::Postscript}); } + else if(Mimer::isOffice(mimeType)) + { + return firstMatch(supportedMimeTypes, {Mimer::PDF, Mimer::Postscript, Mimer::PWG, Mimer::URF }); + } else if(Mimer::isImage(mimeType)) { QStringList ImageFormatPrioList {Mimer::PNG, Mimer::PWG, Mimer::URF, Mimer::JPEG};