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

« back to all changes in this revision

Viewing changes to pdftopdf/P2POutput.cxx

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter, Till Kamppeter, Martin Pitt
  • Date: 2012-03-30 08:49:48 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120330084948-7h3u3zfikkvuywmk
Tags: 1.0.11-1
[ Till Kamppeter ]
* New upstream release
   - Updated all code copied from Poppler to the current state of Poppler,
     to fix any bugs or security vulnerabilities which were in that
     Poppler code.
   - Made Poppler-based PDF filters building with various versions of
     Poppler.
   - Deactivated NIME conversion rules which are not used by the PDF-
     based printing workflow.
   - Added generic PPD for native PDF printers.
   - Cleaned up sample PPD file HP-Color_LaserJet_CM3530_MFP-PDF.ppd.
   - imagetopdf: Added support for native PDF printers.
   - imagetopdf, imagetoraster: Let image input "scale to fit"
     by default. This makes photo printing via AirPrint work,
     as the iOS devices send JPEG but do not allow setting options.
   - pdftops: Generally do not compress fonts and images, and
     also do not do CCITT compression for bitmap glyphs to make
     the PostScript output more compatible with buggy PostScript
     interpreters. The output gets 30-50% longer but will work on
     many more different printer models. Problems were also
     discovered on HP and not only on Brother (LP: #960666).

[ Martin Pitt ]
* Drop debian/patches/poppler-pre-0.18.patch and patch machinery around it.
  It's not necessary with the current upstream version any more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "P2POutput.h"
35
35
#include "P2PObject.h"
36
36
#include <ctype.h>
37
 
#include "Error.h"
 
37
#include "P2PError.h"
38
38
 
39
39
void P2POutput::outputDict(Dict *dict, const char **keys,
40
40
  P2PObject **objs, int len, P2POutputStream *str, XRef *xref)
174
174
  char *nameStr = const_cast<char *>(name);
175
175
#endif
176
176
  Object obj;
177
 
  static char *punctures = "()<>[]{}/%#";
 
177
  static const char *punctures = "()<>[]{}/%#";
178
178
 
179
179
  if (mapDict != 0 && mapDict->lookupNF(nameStr,&obj) != 0) {
180
180
    if (obj.isName()) {
251
251
  case objInt:
252
252
    str->printf("%d",obj->getInt());
253
253
    break;
 
254
  case objUint:
 
255
    str->printf("%u",obj->getUint());
 
256
    break;
254
257
  case objReal:
255
258
    str->printf("%f",obj->getReal());
256
259
    break;