Enable transparent sending of PDFs

(was just disabled for experimenting with conversions)
This commit is contained in:
Anton Thomasson 2020-05-14 21:05:23 +02:00
parent 8c22740651
commit 04c46612c9
2 changed files with 3 additions and 2 deletions

View file

@ -22,7 +22,8 @@ Page {
text: qsTr("Print") text: qsTr("Print")
onClicked: { onClicked: {
console.log(JSON.stringify(jobParams)) console.log(JSON.stringify(jobParams))
pageStack.replace(Qt.resolvedUrl("BusyPage.qml"),{printer:printer}) pageStack.replace(Qt.resolvedUrl("BusyPage.qml"),{printer:printer},
PageStackAction.Immediate)
printer.print(jobParams, page.selectedFile) printer.print(jobParams, page.selectedFile)
} }
} }

View file

@ -282,7 +282,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename){
qDebug() << supportedMimeTypes << supportedMimeTypes.contains(mimeType); qDebug() << supportedMimeTypes << supportedMimeTypes.contains(mimeType);
if(from == Image || (from == Pdf /*&& !supportedMimeTypes.contains("application/pdf")*/)) if(from == Image || (from == Pdf && !supportedMimeTypes.contains("application/pdf")))
{ {
if(supportedMimeTypes.contains("image/pwg-raster")) if(supportedMimeTypes.contains("image/pwg-raster"))
{ {