Bug 704500 - ppmraw device no longer produces output (regression)
Summary: ppmraw device no longer produces output (regression)
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Other Driver (show other bugs)
Version: 9.53.3
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-05 12:07 UTC by alt.d2-9os82yc7
Modified: 2021-10-06 13:26 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
LaTeX-generated PDF (23.26 KB, application/pdf)
2021-10-06 07:23 UTC, alt.d2-9os82yc7
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alt.d2-9os82yc7 2021-10-05 12:07:04 UTC
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.
Comment 1 Ken Sharp 2021-10-05 12:12:21 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....
Comment 2 alt.d2-9os82yc7 2021-10-06 07:23:33 UTC
Created attachment 21682 [details]
LaTeX-generated PDF

Arbitrary PDF file that reproduces the bug.
Comment 3 alt.d2-9os82yc7 2021-10-06 07:24:12 UTC
(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 4 alt.d2-9os82yc7 2021-10-06 07:31:00 UTC
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
Comment 5 alt.d2-9os82yc7 2021-10-06 07:45:08 UTC
I noticed that if the “-sPageList=2” option is omitted, it produces a PPM file.
Comment 6 Ken Sharp 2021-10-06 13:26:08 UTC
(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