CHANGES IN V1.28.9
+ - gstoraster, foomatic-rip: Fixed Ghostscript command line for
+ counting pages as it took too long on PDFs from evince when
+ printing DjVu files (Issue #354, Pull request #371, Ubuntu
+ bug #1920730).
- cups-browsed: Renamed ldap_connect() due to conflict in
new openldap (Issue #367, Pull request #370).
- pdftoraster: Free color data after processing of each page
char output[31] = "";
int pagecount;
size_t bytes;
- snprintf(gscommand, 65536, "%s -q -dNOPAUSE -dBATCH -sDEVICE=bbox %s 2>&1 | grep -c HiResBoundingBox",
+ /* Ghostscript runs too long while printing PDF fikes converted from
+ djvu files. Using -dDEVICEWIDTHPOINTS=1 -dDEVICEHEIGHTPOINTS=1
+ solves the problem */
+ snprintf(gscommand, 65536, "%s -q -dNOPAUSE -dBATCH -sDEVICE=bbox -dDEVICEWIDTHPOINTS=1 -dDEVICEHEIGHTPOINTS=1 %s 2>&1 | grep -c HiResBoundingBox",
CUPS_GHOSTSCRIPT, filename);
FILE *pd = popen(gscommand, "r");
bytes = fread(output, 1, 31, pd);
char output[31] = "";
int pagecount;
size_t bytes;
- snprintf(gscommand, 65536, "%s -q -dNOPAUSE -dBATCH -sDEVICE=bbox %s 2>&1 | grep -c HiResBoundingBox",
+ /* Ghostscript runs too long while printing PDF fikes converted from
+ djvu files. Using -dDEVICEWIDTHPOINTS=1 -dDEVICEHEIGHTPOINTS=1
+ solves the problem */
+ snprintf(gscommand, 65536, "%s -q -dNOPAUSE -dBATCH -sDEVICE=bbox -dDEVICEWIDTHPOINTS=1 -dDEVICEHEIGHTPOINTS=1 %s 2>&1 | grep -c HiResBoundingBox",
CUPS_GHOSTSCRIPT, filename);
FILE *pd = popen(gscommand, "r");