shithub: neatpost

Download patch

ref: ca8f5b9fefb1f75b8b2960fb7b73525fa3630b7e
parent: df40ca99772b4eedcdb91ea1637ac92834c33542
author: Larry Kollar <kollar@windstream.net>
date: Mon Feb 2 06:39:06 EST 2015

out: handle old eps files

This patch allows EPS files with header "%!PS-Adobe-2.0 EPSF-1.2".

--- a/out.c
+++ b/out.c
@@ -265,7 +265,8 @@
 	if (!(filp = fopen(eps, "r")))
 		return;
 	if (!fgets(buf, sizeof(buf), filp) ||
-			(strcmp(buf, "%!PS-Adobe-2.0 EPSF-2.0\n") &&
+			(strcmp(buf, "%!PS-Adobe-2.0 EPSF-1.2\n") &&
+			strcmp(buf, "%!PS-Adobe-2.0 EPSF-2.0\n") &&
 			strcmp(buf, "%!PS-Adobe-3.0 EPSF-3.0\n"))) {
 		fclose(filp);
 		return;