From 77d2c4d83054c0e1e55a698cb65895f29a818237 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 5 Nov 2023 11:39:40 -0500 Subject: [PATCH] Add PostScript filters. --- daemon/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/main.c b/daemon/main.c index df4d314..5e9d06e 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -221,11 +221,15 @@ main(int argc, // I - Number of command-line arguments papplSystemSetPrinterDrivers(system, sizeof(LocalDrivers) / sizeof(LocalDrivers[0]), LocalDrivers, LocalDriverAutoAdd, /* create_cb */NULL, LocalDriverCallback, NULL); papplSystemAddMIMEFilter(system, "application/pdf", "application/pdf", LocalTransformFilter, NULL); + papplSystemAddMIMEFilter(system, "application/pdf", "application/postscript", LocalTransformFilter, NULL); papplSystemAddMIMEFilter(system, "application/pdf", "image/pwg-raster", LocalTransformFilter, NULL); papplSystemAddMIMEFilter(system, "application/pdf", "image/urf", LocalTransformFilter, NULL); papplSystemAddMIMEFilter(system, "image/jpeg", "application/pdf", LocalTransformFilter, NULL); + papplSystemAddMIMEFilter(system, "image/jpeg", "application/postscript", LocalTransformFilter, NULL); papplSystemAddMIMEFilter(system, "image/png", "application/pdf", LocalTransformFilter, NULL); + papplSystemAddMIMEFilter(system, "image/png", "application/postscript", LocalTransformFilter, NULL); papplSystemAddMIMEFilter(system, "text/plain", "application/pdf", LocalTransformFilter, NULL); + papplSystemAddMIMEFilter(system, "text/plain", "application/postscript", LocalTransformFilter, NULL); papplSystemAddMIMEFilter(system, "text/plain", "image/pwg-raster", LocalTransformFilter, NULL); papplSystemAddMIMEFilter(system, "text/plain", "image/urf", LocalTransformFilter, NULL);