Bug 2177856
| Summary: | PDF to PS conversion ends with error, but a PS file is generated | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Dohnal <zdohnal> | ||||
| Component: | ghostscript | Assignee: | Richard Lescak <rlescak> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 38 | CC: | akhaitovich, mjg, mosvald, rlescak, zdohnal | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2023-03-14 13:40:26 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Zdenek Dohnal
2023-03-13 17:15:09 UTC
Created attachment 1950287 [details]
Reproducer
Note that this fails with ghostscript-9.56.1-5.fc37.x86_64 already, with the same error.
OTOH, with `-dNEWPDF=false`, it gives a warning:
**** Warning: File has an empty MediaBox. Using the current page size instead.
Output may be incorrect.
**** Warning: File has an empty MediaBox. Using the current page size instead.
Output may be incorrect.
In any case, the input file `out.pdf` looks blank already, in any viewer. I can extract the image using `pdfimages`, of course. So I don't think the pdf is OK (though gs should not error out.)
I don't understand the remark about conv tables. Does this refer to something that cups uses in CI but not on user installs, but which you reproduce with the gs command line above?
Ouch, my bad, an elementary mistake - I didn't check the output of the previous filter which created the PDF... sorry for the noise.
Btw what is the current way for viewing Postscript files with Ghostscript? X11 device was removed and -sDEVICE=display segfaults (I'll file a separate bug).
>
> I don't understand the remark about conv tables. Does this refer to
> something that cups uses in CI but not on user installs, but which you
> reproduce with the gs command line above?
Yes, but this is moot info right now, since the problem looks to lie in the previous filter.
(In reply to Zdenek Dohnal from comment #3) > Ouch, my bad, an elementary mistake - I didn't check the output of the > previous filter which created the PDF... sorry for the noise. > > Btw what is the current way for viewing Postscript files with Ghostscript? > X11 device was removed and -sDEVICE=display segfaults (I'll file a separate > bug). In which version do you think it is removed, and what does "gs -h" say? x11 is the default device for gs ... https://ghostscript.readthedocs.io/en/latest/Devices.html#x-window-system (In reply to Michael J Gruber from comment #4) > (In reply to Zdenek Dohnal from comment #3) > > Ouch, my bad, an elementary mistake - I didn't check the output of the > > previous filter which created the PDF... sorry for the noise. > > > > Btw what is the current way for viewing Postscript files with Ghostscript? > > X11 device was removed and -sDEVICE=display segfaults (I'll file a separate > > bug). > $ gs -sDEVICE=x11 ps GPL Ghostscript 10.0.0 (2022-09-21) Copyright (C) 2022 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Unknown device: x11 > In which version do you think it is removed, and what does "gs -h" say? > It was removed in 10.0.0, Fedora CI caught it, but Risa talked with upstream and I understood it as it was intentionally removed upstream. $ rpm -q ghostscript ghostscript-10.0.0-3.fc38.x86_64 $ gs -h ... Available devices: alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp ... tiffsep1 txtwrite uniprint urf xcf xes xpswrite > x11 is the default device for gs ... > https://ghostscript.readthedocs.io/en/latest/Devices.html#x-window-system I'll ask upstream to be sure, but certainly it was removed in gs 10.0.0 rebase. |