rastertopdf: Do not segfault when trying to generate PCLm without PPD file.
@@ -1374,6 +1374,12 @@ int main(int argc, char **argv)
status = ppdLastError(&linenum);
fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum);
+#ifdef QPDF_HAVE_PCLM
+ if (outformat == OUTPUT_FORMAT_PCLM) {
+ fprintf(stderr, "ERROR: PCLm output only possible with PPD file.\n");
+ return 1;
+ }
+#endif
}
// Open the page stream...
