-CHANGES.txt - 2011-03-31
+CHANGES.txt - 2011-05-06
------------------------
CHANGES IN CUPS V1.5b1
+ - Update PDF filter to support new Poppler option to preserve page sizes
+ in PDF files when the user has not selected a particular media size
+ (STR #3689)
- Added new PWG Raster filter for IPP Everywhere printer support.
- Added printer-uuid attribute.
- Added support for the cupsSingleFile PPD keyword.
-README - CUPS v1.5svn - 2011-01-03
+README - CUPS v1.5svn - 2011-05-06
----------------------------------
Looking for compile instructions? Read the file "INSTALL.txt"
;;
esac
+if test "x$CUPS_PDFTOPS" != x; then
+ if `$CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes 2>/dev/null`; then
+ AC_DEFINE(HAVE_PDFTOPS_WITH_ORIGPAGESIZES)
+ fi
+fi
+
AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT")
AC_SUBST(PDFTOPS)
*/
#undef HAVE_PDFTOPS
+#undef HAVE_PDFTOPS_WITH_ORIGPAGESIZES
#define CUPS_PDFTOPS "/usr/bin/pdftops"
strcasecmp(val, "false") != 0)
orientation = 1;
}
- else if ((val = cupsGetOption("orientation-requested", num_options, options)) != NULL)
+ else if ((val = cupsGetOption("orientation-requested", num_options,
+ options)) != NULL)
{
/*
* Map IPP orientation values to 0 to 3:
pdf_argv[pdf_argc++] = pdf_height;
#endif /* HAVE_PDFTOPS */
}
+#if defined(HAVE_PDFTOPS) && defined(HAVE_PDFTOPS_WITH_ORIGPAGESIZES)
+ else
+ {
+ /*
+ * Use the page sizes of the original PDF document, this way documents
+ * which contain pages of different sizes can be printed correctly
+ */
+
+ pdf_argv[pdf_argc++] = (char *)"-origpagesizes";
+ }
+#endif /* HAVE_PDFTOPS && HAVE_PDFTOPS_WITH_ORIGPAGESIZES */
}
#ifdef HAVE_PDFTOPS