Skip to content

Commit

Permalink
Add PostScript filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 5, 2023
1 parent 875164a commit 77d2c4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daemon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 77d2c4d

Please sign in to comment.