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

« back to all changes in this revision

Viewing changes to filter/pdftoijs.cxx

  • 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:
30
30
#include <config.h>
31
31
#include <stdio.h>
32
32
#include <stdlib.h>
 
33
#ifdef HAVE_CPP_POPPLER_VERSION_H
 
34
#include "cpp/poppler-version.h"
 
35
#endif
33
36
#include <goo/GooString.h>
34
37
#include <goo/gmem.h>
35
38
#include <Object.h>
288
291
#else
289
292
  setErrorFunction(::myErrorFun);
290
293
#endif
291
 
#ifdef GLOBALPARAMS_HAS_A_ARG
292
 
  globalParams = new GlobalParams(0);
293
 
#else
294
294
  globalParams = new GlobalParams();
295
 
#endif
296
295
  parseOpts(argc, argv);
297
296
 
298
297
  if (argc == 6) {
517
516
 
518
517
/* replace memory allocation methods for memory check */
519
518
 
520
 
void * operator new(size_t size)
 
519
void * operator new(size_t size) throw (std::bad_alloc)
521
520
{
522
521
  return gmalloc(size);
523
522
}
524
523
 
525
 
void operator delete(void *p)
 
524
void operator delete(void *p) throw ()
526
525
{
527
526
  gfree(p);
528
527
}
529
528
 
530
 
void * operator new[](size_t size)
 
529
void * operator new[](size_t size) throw (std::bad_alloc)
531
530
{
532
531
  return gmalloc(size);
533
532
}
534
533
 
535
 
void operator delete[](void *p)
 
534
void operator delete[](void *p) throw ()
536
535
{
537
536
  gfree(p);
538
537
}