You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Switch to pdftops wrapper program from CUPS 1.4 #3129
--- config-scripts/cups-pdf.m4 (revision 8428)
+++ config-scripts/cups-pdf.m4 (revision 8429)
@@ -3,7 +3,7 @@
dnl
dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS).
dnl
-dnl Copyright 2007 by Apple Inc.
+dnl Copyright 2007-2009 by Apple Inc.
dnl Copyright 2006 by Easy Software Products, all rights reserved.
dnl
dnl These coded instructions, statements, and computer programs are the
@@ -14,19 +14,58 @@
dnl
Activity
michaelrsweet commentedon Mar 12, 2009
CUPS.org User: mike
Fixed in Subversion repository.
michaelrsweet commentedon Mar 12, 2009
"str3129.patch":
Index: config-scripts/cups-pdf.m4
--- config-scripts/cups-pdf.m4 (revision 8428)
+++ config-scripts/cups-pdf.m4 (revision 8429)
@@ -3,7 +3,7 @@
dnl
dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS).
dnl
-dnl Copyright 2007 by Apple Inc.
+dnl Copyright 2007-2009 by Apple Inc.
dnl Copyright 2006 by Easy Software Products, all rights reserved.
dnl
dnl These coded instructions, statements, and computer programs are the
@@ -14,19 +14,58 @@
dnl
AC_ARG_ENABLE(pdftops, [ --enable-pdftops build pdftops filter, default=auto ])
+AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,pdftops,none), default=pdftops ])
+if test "x$enable_pdftops" = xno -a "x$with_pdftops" = x; then
+fi
PDFTOPS=""
+CUPS_PDFTOPS=""
+CUPS_GHOSTSCRIPT=""
-if test "x$enable_pdftops" != xno; then
+case "x$with_pdftops" in
-fi
+esac
+AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
+AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT")
AC_SUBST(PDFTOPS)
dnl
Index: Makefile
--- Makefile (revision 8428)
+++ Makefile (revision 8429)
@@ -3,7 +3,7 @@
Top-level Makefile for the Common UNIX Printing System (CUPS).
-# Copyright 2007-2008 by Apple Inc.
+# Copyright 2007-2009 by Apple Inc.
Copyright 1997-2007 by Easy Software Products, all rights reserved.
These coded instructions, statements, and computer programs are the
@@ -20,7 +20,7 @@
DIRS = cups backend berkeley cgi-bin filter locale man monitor \
Index: filter/pdftops.c
--- filter/pdftops.c (revision 0)
+++ filter/pdftops.c (revision 8429)
@@ -0,0 +1,407 @@
+/*
+
+/
+
+#include <cups/cups.h>
+#include <cups/string.h>
+#include <cups/i18n.h>
+#include <signal.h>
+#include <sys/wait.h>
+#include <errno.h>
+
+
+/
+
+static void cancel_job(int sig);
+
+
+/
+
+static int job_canceled = 0;
+
+
+/
+
+int / O - Exit status /
+main(int argc, / I - Number of command-line args */
+#endif / HAVE_SIGACTION && !HAVE_SIGSET */
+#ifdef HAVE_SIGSET /_ Use System V signals over POSIX to avoid bugs */
+#elif defined(HAVE_SIGACTION)
+#else
+#endif /* HAVE_SIGSET */
+#ifdef HAVE_PDFTOPS
+#else
+#endif /* HAVE_PDFTOPS */
+#ifdef HAVE_PDFTOPS
+#ifdef HAVE_PDFTOPS
+#else
+#ifdef HAVE_PDFTOPS
+
+#ifdef HAVE_PDFTOPS
+#else+#ifdef HAVE_PDFTOPS
+#else
+#endif /* HAVE_PDFTOPS */
+#ifdef HAVE_PDFTOPS
+
+#ifdef HAVE_PDFTOPS
+
+}
+/*
+
+static void
+cancel_job(int sig) / I - Signal number (unused) */
+{
+}
+/*
Property changes on: filter/pdftops.c
Added: svn:eol-style
Added: svn:keywords
Index: filter/Makefile
--- filter/Makefile (revision 8428)
+++ filter/Makefile (revision 8429)
@@ -3,7 +3,7 @@
Filter makefile for the Common UNIX Printing System (CUPS).
-# Copyright 2007 by Apple Inc.
+# Copyright 2007-2009 by Apple Inc.
Copyright 1997-2006 by Easy Software Products.
These coded instructions, statements, and computer programs are the
@@ -19,7 +19,7 @@
FILTERS = gziptoany hpgltops texttops pstops $(IMGFILTERS) \
TARGETS = $(FILTERS)$(HPGLOBJS) $ (IMAGEOBJS) $(FORMOBJS) \
$(LIBCUPSIMAGE)
libcupsimage.a
@@ -39,9 +39,9 @@
IMAGE64OBJS = $(IMAGEOBJS:.o=.64.o)
FORMOBJS = form-attr.o form-main.o form-ps.o form-text.o form-tree.o
OBJS =
@@ -324,6 +324,15 @@
+# pdftops
+#
+
+pdftops: pdftops.o common.o ../cups/$(LIBCUPS)
echo Linking $@...
+#
rastertolabel
Index: filter/Dependencies
--- filter/Dependencies (revision 8428)
+++ filter/Dependencies (revision 8429)
@@ -106,6 +106,9 @@
common.o: common.h ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
common.o: ../cups/array.h ../cups/file.h ../cups/language.h
common.o: ../cups/language.h ../cups/string.h ../config.h
+pdftops.o: ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
+pdftops.o: ../cups/array.h ../cups/file.h ../cups/language.h ../cups/string.h
+pdftops.o: ../config.h ../cups/i18n.h ../cups/transcode.h
pstops.o: common.h ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
pstops.o: ../cups/array.h ../cups/file.h ../cups/language.h
pstops.o: ../cups/language.h ../cups/string.h ../config.h ../cups/file.h
@@ -246,6 +249,9 @@
common.32.o: common.c common.h ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
common.32.o: common.c ../cups/array.h ../cups/file.h ../cups/language.h
common.32.o: common.c ../cups/language.h ../cups/string.h ../config.h
+pdftops.32.o: pdftops.c ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
+pdftops.32.o: pdftops.c ../cups/array.h ../cups/file.h ../cups/language.h ../cups/string.h
+pdftops.32.o: pdftops.c ../config.h ../cups/i18n.h ../cups/transcode.h
pstops.32.o: pstops.c common.h ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
pstops.32.o: pstops.c ../cups/array.h ../cups/file.h ../cups/language.h
pstops.32.o: pstops.c ../cups/language.h ../cups/string.h ../config.h ../cups/file.h
@@ -386,6 +392,9 @@
common.64.o: common.c common.h ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
common.64.o: common.c ../cups/array.h ../cups/file.h ../cups/language.h
common.64.o: common.c ../cups/language.h ../cups/string.h ../config.h
+pdftops.64.o: pdftops.c ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
+pdftops.64.o: pdftops.c ../cups/array.h ../cups/file.h ../cups/language.h ../cups/string.h
+pdftops.64.o: pdftops.c ../config.h ../cups/i18n.h ../cups/transcode.h
pstops.64.o: pstops.c common.h ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/ppd.h
pstops.64.o: pstops.c ../cups/array.h ../cups/file.h ../cups/language.h
pstops.64.o: pstops.c ../cups/language.h ../cups/string.h ../config.h ../cups/file.h
Index: config.h.in
--- config.h.in (revision 8428)
+++ config.h.in (revision 8429)
@@ -3,7 +3,7 @@
*
@@ -436,6 +436,22 @@
/*
+
+#undef HAVE_PDFTOPS
+#define CUPS_PDFTOPS "/usr/bin/pdftops"
+
+
+/
+
+#undef HAVE_GHOSTSCRIPT
+#define CUPS_GHOSTSCRIPT "/usr/bin/gs"
+
+
+/
*/
frankpolte commentedon Jun 19, 2018
Thanks a lot! 👍