Nevermind, only consider images supported if raster formats are supported

This commit is contained in:
Anton Thomasson 2020-05-16 15:33:22 +02:00
parent 0d94f8a4f6
commit 2da5baad59

View file

@ -14,11 +14,13 @@ function supported_formats(printer, ConvertChecker)
supported.push("Postscript");
}
if ( has(formats, "image/pwg-raster") || has(formats, "image/urf"))
{
mimetypes.push("image/jpeg");
supported.push("JPEG");
mimetypes.push("image/png");
supported.push("PNG");
}
//var info = "MFG:Hewlett-Packard;CMD:PJL,BIDI-ECP,PJL,POSTSCRIPT,PDF,PCLXL,PCL;MDL:HP LaserJet P3010 Series;CLS:PRINTER;DES:Hewlett-Packard ".split(";");
var maybe = []
var info = printer.attrs["printer-info"] ? printer.attrs["printer-info"].value.split(";") : [];