1.0.40 - Use new "hybrid" pdftops renderer.
This commit is contained in:
parent
fa2cdf9f88
commit
8f4dfe4104
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@
|
||||
/cups-filters-1.0.37.tar.xz
|
||||
/cups-filters-1.0.38.tar.xz
|
||||
/cups-filters-1.0.39.tar.xz
|
||||
/cups-filters-1.0.40.tar.xz
|
||||
|
@ -1,71 +0,0 @@
|
||||
diff -up cups-filters-1.0.35/filter/pdfutils.c.format-mismatch cups-filters-1.0.35/filter/pdfutils.c
|
||||
--- cups-filters-1.0.35/filter/pdfutils.c.format-mismatch 2013-10-01 12:22:16.244383288 +0100
|
||||
+++ cups-filters-1.0.35/filter/pdfutils.c 2013-10-01 12:24:05.510864420 +0100
|
||||
@@ -242,7 +242,7 @@ void pdfOut_finish_pdf(pdfOut *pdf) // {
|
||||
"%010d 65535 f \n",
|
||||
0,pdf->xrefsize+1,0);
|
||||
for (iA=0;iA<pdf->xrefsize;iA++) {
|
||||
- pdfOut_printf(pdf,"%010d 00000 n \n",
|
||||
+ pdfOut_printf(pdf,"%010ld 00000 n \n",
|
||||
pdf->xref[iA]);
|
||||
}
|
||||
pdfOut_printf(pdf,"trailer\n"
|
||||
@@ -347,7 +347,7 @@ int pdfOut_write_font(pdfOut *pdf,EMB_PA
|
||||
const int l0_obj=pdfOut_add_xref(pdf);
|
||||
assert(l0_obj==ff_obj+1);
|
||||
pdfOut_printf(pdf,"%d 0 obj\n"
|
||||
- "%d\n"
|
||||
+ "%ld\n"
|
||||
"endobj\n"
|
||||
,l0_obj,streamsize);
|
||||
|
||||
diff -up cups-filters-1.0.35/filter/pdfutils.h.format-mismatch cups-filters-1.0.35/filter/pdfutils.h
|
||||
--- cups-filters-1.0.35/filter/pdfutils.h.format-mismatch 2012-06-22 17:10:47.000000000 +0100
|
||||
+++ cups-filters-1.0.35/filter/pdfutils.h 2013-10-01 12:07:07.393378641 +0100
|
||||
@@ -42,7 +42,8 @@ void pdfOut_finish_pdf(pdfOut *pdf);
|
||||
/* General output routine for our pdf.
|
||||
* Keeps track of characters actually written out
|
||||
*/
|
||||
-void pdfOut_printf(pdfOut *pdf,const char *fmt,...);
|
||||
+void pdfOut_printf(pdfOut *pdf,const char *fmt,...)
|
||||
+ __attribute__((format(printf, 2, 3)));
|
||||
|
||||
/* write out an escaped pdf string: e.g. (Text \(Test\)\n)
|
||||
* >len==-1: use strlen(str)
|
||||
diff -up cups-filters-1.0.35/filter/texttopdf.c.format-mismatch cups-filters-1.0.35/filter/texttopdf.c
|
||||
--- cups-filters-1.0.35/filter/texttopdf.c.format-mismatch 2013-10-01 12:24:41.218021702 +0100
|
||||
+++ cups-filters-1.0.35/filter/texttopdf.c 2013-10-01 12:24:41.863024579 +0100
|
||||
@@ -250,7 +250,7 @@ WritePage(void)
|
||||
int len_obj=pdfOut_add_xref(pdf);
|
||||
assert(len_obj==content+1);
|
||||
pdfOut_printf(pdf,"%d 0 obj\n"
|
||||
- "%d\n"
|
||||
+ "%ld\n"
|
||||
"endobj\n",
|
||||
len_obj,size);
|
||||
|
||||
diff -up cups-filters-1.0.35/fontembed/dynstring.h.format-mismatch cups-filters-1.0.35/fontembed/dynstring.h
|
||||
--- cups-filters-1.0.35/fontembed/dynstring.h.format-mismatch 2012-06-22 17:10:47.000000000 +0100
|
||||
+++ cups-filters-1.0.35/fontembed/dynstring.h 2013-10-01 12:07:07.393378641 +0100
|
||||
@@ -9,7 +9,8 @@ typedef struct {
|
||||
int dyn_init(DYN_STRING *ds,int reserve_size); // -1 on error
|
||||
void dyn_free(DYN_STRING *ds);
|
||||
int dyn_ensure(DYN_STRING *ds,int free_space);
|
||||
-int dyn_printf(DYN_STRING *ds,const char *fmt,...); // appends
|
||||
+int dyn_printf(DYN_STRING *ds,const char *fmt,...) // appends
|
||||
+ __attribute__((format(printf, 2, 3)));
|
||||
|
||||
#endif
|
||||
|
||||
diff -up cups-filters-1.0.35/fontembed/embed_sfnt.c.format-mismatch cups-filters-1.0.35/fontembed/embed_sfnt.c
|
||||
--- cups-filters-1.0.35/fontembed/embed_sfnt.c.format-mismatch 2013-10-01 12:25:24.164210823 +0100
|
||||
+++ cups-filters-1.0.35/fontembed/embed_sfnt.c 2013-10-01 12:25:39.727279359 +0100
|
||||
@@ -519,7 +519,7 @@ int emb_otf_ps(OTF_FILE *otf,unsigned sh
|
||||
free(ds.buf);
|
||||
return -1;
|
||||
}
|
||||
- dyn_printf(&ds,"%!PS-TrueTypeFont-%d-%d\n",
|
||||
+ dyn_printf(&ds,"%%!PS-TrueTypeFont-%d-%d\n",
|
||||
otf->version,get_ULONG(head+4));
|
||||
const int bbxmin=get_SHORT(head+36)*1000/otf->unitsPerEm,
|
||||
bbymin=get_SHORT(head+38)*1000/otf->unitsPerEm,
|
@ -3,7 +3,7 @@
|
||||
|
||||
Summary: OpenPrinting CUPS filters and backends
|
||||
Name: cups-filters
|
||||
Version: 1.0.39
|
||||
Version: 1.0.40
|
||||
Release: 1%{?dist}
|
||||
|
||||
# For a breakdown of the licensing, see COPYING file
|
||||
@ -21,8 +21,6 @@ Group: System Environment/Base
|
||||
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-format-mismatch.patch
|
||||
|
||||
Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
# Obsolete cups-php (bug #971741)
|
||||
@ -104,18 +102,17 @@ This is the development package for OpenPrinting CUPS filters and backends.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# Fixes for some printf-type format mismatches (bug #1014093).
|
||||
%patch1 -p1 -b .format-mismatch
|
||||
|
||||
%build
|
||||
# work-around Rpath
|
||||
./autogen.sh
|
||||
|
||||
# --with-pdftops=pdftops - use Poppler instead of Ghostscript (see README)
|
||||
# --with-pdftops=hybrid - use Poppler's pdftops instead of Ghostscript for
|
||||
# Brother, Minolta, and Konica Minolta to work around
|
||||
# bugs in the printer's PS interpreters
|
||||
# --with-rcdir=no - don't install SysV init script
|
||||
%configure --disable-static \
|
||||
--disable-silent-rules \
|
||||
--with-pdftops=pdftops \
|
||||
--with-pdftops=hybrid \
|
||||
--with-rcdir=no
|
||||
|
||||
make %{?_smp_mflags}
|
||||
@ -223,6 +220,10 @@ fi
|
||||
%{_libdir}/libfontembed.so
|
||||
|
||||
%changelog
|
||||
* Fri Oct 11 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.40-1
|
||||
- 1.0.40
|
||||
- Use new "hybrid" pdftops renderer.
|
||||
|
||||
* Thu Oct 03 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.39-1
|
||||
- 1.0.39
|
||||
- Removed obsolete patches "pdf-landscape" and "browsepoll-notifications"
|
||||
|
Loading…
Reference in New Issue
Block a user