Enable transparent sending of PDFs
(was just disabled for experimenting with conversions)
This commit is contained in:
parent
8c22740651
commit
04c46612c9
2 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,8 @@ Page {
|
|||
text: qsTr("Print")
|
||||
onClicked: {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -282,7 +282,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename){
|
|||
|
||||
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"))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue