From 36df523c0b940c6e7d47b3812d31e7ab062054f8 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 9 May 2014 18:57:18 +0200 Subject: [PATCH] Return Tim's work-around patch for bug #768811. --- cups-filters-pdf-landscape.patch | 34 ++++++++++++++++++++++++++++++++ cups-filters.spec | 10 +++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 cups-filters-pdf-landscape.patch diff --git a/cups-filters-pdf-landscape.patch b/cups-filters-pdf-landscape.patch new file mode 100644 index 0000000..30ffbfc --- /dev/null +++ b/cups-filters-pdf-landscape.patch @@ -0,0 +1,34 @@ +diff -up cups-filters-1.0.53/filter/pdftops.c.pdf-landscape cups-filters-1.0.53/filter/pdftops.c +--- cups-filters-1.0.53/filter/pdftops.c.pdf-landscape 2014-05-09 12:18:35.679501730 +0200 ++++ cups-filters-1.0.53/filter/pdftops.c 2014-05-09 12:19:34.114704598 +0200 +@@ -646,23 +646,23 @@ main(int argc, /* I - Number of comm + if ((renderer == PDFTOPS) || (renderer == PDFTOCAIRO)) + { + /* +- * Use the page sizes of the original PDF document, this way documents +- * which contain pages of different sizes can be printed correctly ++ * No options to add. Note: pdftopdf has already rotated pages ++ * for us. + */ + +- pdf_argv[pdf_argc++] = (char *)"-origpagesizes"; +- pdf_argv[pdf_argc++] = (char *)"-nocenter"; ++ //pdf_argv[pdf_argc++] = (char *)"-origpagesizes"; ++ //pdf_argv[pdf_argc++] = (char *)"-nocenter"; + } + else + #endif /* HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES */ + if (renderer == ACROREAD) + { + /* +- * Use the page sizes of the original PDF document, this way documents +- * which contain pages of different sizes can be printed correctly ++ * No options to add. Note: pdftopdf has already rotated pages ++ * for us. + */ + +- pdf_argv[pdf_argc++] = (char *)"-choosePaperByPDFPageSize"; ++ //pdf_argv[pdf_argc++] = (char *)"-choosePaperByPDFPageSize"; + } + + /* diff --git a/cups-filters.spec b/cups-filters.spec index fdd24b1..510db35 100644 --- a/cups-filters.spec +++ b/cups-filters.spec @@ -4,7 +4,7 @@ Summary: OpenPrinting CUPS filters and backends Name: cups-filters Version: 1.0.53 -Release: 1%{?dist} +Release: 2%{?dist} # For a breakdown of the licensing, see COPYING file # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, @@ -20,6 +20,8 @@ License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2+ and MIT Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz +Patch1: cups-filters-pdf-landscape.patch + Requires: cups-filters-libs%{?_isa} = %{version}-%{release} # Obsolete cups-php (bug #971741) @@ -110,6 +112,9 @@ This is the development package for OpenPrinting CUPS filters and backends. %prep %setup -q +# Fix PDF landscape printing (bug #768811). +%patch1 -p1 -b .pdf-landscape + %build # work-around Rpath ./autogen.sh @@ -235,6 +240,9 @@ fi %{_libdir}/libfontembed.so %changelog +* Fri May 09 2014 Jiri Popelka - 1.0.53-2 +- Return Tim's work-around patch for bug #768811. + * Mon Apr 28 2014 Jiri Popelka - 1.0.53-1 - 1.0.53