Return Tim's work-around patch for bug #768811.

This commit is contained in:
Jiri Popelka 2014-05-09 18:57:18 +02:00
parent 251ba77575
commit 36df523c0b
2 changed files with 43 additions and 1 deletions

View File

@ -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";
}
/*

View File

@ -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 <jpopelka@redhat.com> - 1.0.53-2
- Return Tim's work-around patch for bug #768811.
* Mon Apr 28 2014 Jiri Popelka <jpopelka@redhat.com> - 1.0.53-1
- 1.0.53