Bug#939530: ghostscript: 9.28rc1 regression interpreting valid PDFs
Package: ghostscript
Version: 9.28~~rc1~dfsg-1
Severity: important
Tags: upstream
Dear Maintainer,
1. Ghostscript 9.28rc1 reports "Error reading content streams" when
interpreting PDFs considered valid by Acrobat, qpdf, verapdf and
previous versions of Ghostscript.
2. Ghostscript 9.28rc1 reports "Recursive XObjects" on
multiple-referenced images when interpreting PDFs considered valid by
Acrobat, qpdf, verapdf and previous versions of Ghostscript.
This test file demonstrates both issues.
https://github.com/jbarlow83/OCRmyPDF/raw/master/tests/resources/cardinal.pdf
A command such as will display the error messages
```
$ gs -q -sDEVICE=pngmono -o _.png cardinal.pdf
**** Error reading a content stream. The page may be incomplete.
Output may be incorrect.
**** Error: File did not complete the page properly and may be damaged.
Output may be incorrect.
**** Error: Recursive XObject detected, ignoring "Im0", object number 14
Output may be incorrect.
**** Error: Recursive XObject detected, ignoring "Im0", object number 14
Output may be incorrect.
**** Error: Recursive XObject detected, ignoring "Im0", object number 14
Output may be incorrect.
```
The error messages appear for other values of sDEVICE. The first
problem just displays a spurious error message. The second problem
will cause images or other objects to be suppressed from Ghostscript's
output.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.14.116-boot2docker (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages ghostscript depends on:
ii libc6 2.28-10
ii libgs9 9.28~~rc1~dfsg-1
ghostscript recommends no packages.
Versions of packages ghostscript suggests:
pn ghostscript-x <none>
-- no debconf information
Reply to: