~ubuntu-branches/ubuntu/raring/cups-filters/raring-proposed

« back to all changes in this revision

Viewing changes to filter/imagetops

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# $Id: $
 
4
#
 
5
# imagetops - This is a Image-to-PostScript filter for CUPS
 
6
#
 
7
# Note: This wrapper filter is only included for backward compatibility with
 
8
# certan custom configurations. It is not mentioned in any of the .convs
 
9
# files included in this package and therefore never used with the default
 
10
# configuration. It makes sure that third-party PPD files referring to
 
11
# imagetops explicitly or custom configurations (in /etc/cups/*.convs files)
 
12
# will not break.
 
13
#
 
14
# DO NOT create new PPD or .convs files using this filter! imagetops is
 
15
# DEPRECATED!
 
16
 
 
17
# (C) 2012 Till Kamppeter <till.kamppeter@gmail.com>
 
18
#
 
19
# Released under GPL 2 or later
 
20
#
 
21
 
 
22
PDF2PS=`which pdf2ps`
 
23
 
 
24
echo "DEBUG: imagetops argv[$#] = $@" >&2
 
25
echo "DEBUG: PPD: $PPD" >&2
 
26
 
 
27
if [ $# -lt 5 -o $# -gt 6 ]; then
 
28
    echo "ERROR: $0 job-id user title copies options [file]" >&2
 
29
    exit 1
 
30
fi
 
31
 
 
32
# Read from given file.
 
33
if [ -n "$6" ]; then
 
34
    exec <"$6"
 
35
fi
 
36
 
 
37
`dirname $0`/imagetopdf "$1" "$2" "$3" "$4" "$5" | $PDF2PS - -