~ubuntu-branches/ubuntu/quantal/foomatic-filters/quantal

« back to all changes in this revision

Viewing changes to pdf.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud, Didier Raboud, Translation updates
  • Date: 2011-08-03 17:20:54 UTC
  • mfrom: (1.2.6 upstream) (2.1.55 oneiric)
  • Revision ID: james.westby@ubuntu.com-20110803172054-bf45a2sybupeiavc
Tags: 4.0.9-1
* New upstream release
  - Fixed build of foomatic-rip on systems without D-Bus.

[ Didier Raboud]
* Uploaders update:
  - Drop Chris Lawrence, with his consent and great thanks for the 6 years
    of work on foomatic-filters.
  + Add Till Kamppeter.
* Bump Standards-Version to 3.9.2 without changes needed.

[ Translation updates ]
* Danish (new translation, Joe Dalton, Closes: #614294)

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
{
111
111
    char gscommand[4095];
112
112
    char filename_arg[PATH_MAX], first_arg[50], last_arg[50];
 
113
    int fd;
113
114
 
114
115
    _log("Extracting pages %d through %d\n", first, last);
115
116
 
116
117
    snprintf(filename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir());
117
 
    mktemp(filename);
118
 
    if (!filename[0])
 
118
    if ((fd = mkstemp(filename)) == -1)
119
119
        rip_die(EXIT_STARVED, "Unable to create temporary file!\n");
 
120
    close (fd);
120
121
 
121
122
    snprintf(filename_arg, PATH_MAX, "-sOutputFile=%s", filename);
122
123
    snprintf(first_arg, 50, "-dFirstPage=%d", first);
125
126
    else
126
127
        first_arg[0] = '\0';
127
128
 
128
 
    snprintf(gscommand, 4095, "%s -q -dNOPAUSE -dBATCH -dPARANOIDSAFER"
 
129
    snprintf(gscommand, 4095, "%s -q -dNOPAUSE -dBATCH -dPARANOIDSAFER -dNOINTERPOLATE"
129
130
             "-sDEVICE=pdfwrite %s %s %s %s",
130
131
             gspath, filename_arg, first_arg, last_arg, pdffilename);
131
132