Add format selection for office formats, if auto
This commit is contained in:
parent
e0eb980220
commit
f36488c1b7
1 changed files with 4 additions and 0 deletions
|
@ -314,6 +314,10 @@ QString targetFormatIfAuto(QString documentFormat, QString mimeType, QJsonArray
|
||||||
{
|
{
|
||||||
return firstMatch(supportedMimeTypes, {Mimer::Postscript});
|
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))
|
else if(Mimer::isImage(mimeType))
|
||||||
{
|
{
|
||||||
QStringList ImageFormatPrioList {Mimer::PNG, Mimer::PWG, Mimer::URF, Mimer::JPEG};
|
QStringList ImageFormatPrioList {Mimer::PNG, Mimer::PWG, Mimer::URF, Mimer::JPEG};
|
||||||
|
|
Loading…
Reference in a new issue