Summary: | ppmraw device no longer produces output (regression) | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | alt.d2-9os82yc7 |
Component: | Other Driver | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 9.53.3 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | LaTeX-generated PDF |
Description
alt.d2-9os82yc7
2021-10-05 12:07:04 UTC
(In reply to alt.d2-9os82yc7 from comment #0) > In version 9.26, the following command worked as expected -- it produces a > ppm file: > > $ gs -sDEVICE=ppmraw -q -r600 -sPAPERSIZE=a4 -dFIXEDMEDIA -sPageList=4 -o > /tmp/raster.ppm vector.pdf > > But in ghostscript version 9.53.3, that command produces no PPM file, and > the terminal output is empty. That is, there is no info, error, warning, or > indication of progress. > > FWIW, the PDF in my tests was produced by LaTeX. You're going to have to supply the PDF file too.... Created attachment 21682 [details]
LaTeX-generated PDF
Arbitrary PDF file that reproduces the bug.
(In reply to Ken Sharp from comment #1) > > FWIW, the PDF in my tests was produced by LaTeX. > > You're going to have to supply the PDF file too.... This happens on any PDF that’s produced by LaTeX. I've attached a sample. Comment on attachment 21682 [details]
LaTeX-generated PDF
Command used on that sample to reproduce the bug:
$ gs -sDEVICE=ppmraw -q -r600 -sPAPERSIZE=a4 -dFIXEDMEDIA -sPageList=2 -o /tmp/raster.ppm layout.pdf
$ stat /tmp/raster.ppm
stat: cannot statx '/tmp/raster.ppm': No such file or directory
I noticed that if the “-sPageList=2” option is omitted, it produces a PPM file. (In reply to alt.d2-9os82yc7 from comment #4) > Comment on attachment 21682 [details] > LaTeX-generated PDF > > Command used on that sample to reproduce the bug: > > $ gs -sDEVICE=ppmraw -q -r600 -sPAPERSIZE=a4 -dFIXEDMEDIA -sPageList=2 -o > /tmp/raster.ppm layout.pdf > > $ stat /tmp/raster.ppm > stat: cannot statx '/tmp/raster.ppm': No such file or directory Using the supplied file and command line, and the 9.55.0 release, this works perfectly well for me. The produced PPM file is 104.4MB in size. It does not produce a file in 9.53.3, and I believe that it was probably fixed in this commit: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=b4c9f0004f950a7f55fff5777c6fa0d74d1f54bd So you need to upgrade to either 9.54.0 or 9.55.0. Obviously I would recommend 9.55.0 |