Thanks to visit codestin.com
Credit goes to github.com

Skip to content

xpdf distiller seems broken #16538

Closed
@anntzer

Description

@anntzer

Bug report

Bug summary

What the title says

Code for reproduction

rcParams["ps.usedistiller"] = "xpdf"; plot(); savefig("/tmp/test.ps")

Actual outcome

<elided>
  File ".../matplotlib/backends/backend_ps.py", line 1247, in xpdf_distill
    cbook._check_and_log_subprocess(
  File ".../matplotlib/cbook/__init__.py", line 2129, in _check_and_log_subprocess
    raise RuntimeError(
RuntimeError: The command
    ps2pdf '-dAutoFilterColorImages#false' '-dAutoFilterGrayImages#false' '-dAutoRotatePages#false' '-sGrayImageFilter#FlateEncode' '-sColorImageFilter#FlateEncode' '-sPAPERSIZE#letter' /tmp/tmpddvwd66_/tmp.ps /tmp/tmpddvwd66_/tmp.ps.pdf
failed and generated the following output:

and the following error:
Unrecoverable error: typecheck in .putdeviceprops

Expected outcome

Success.

Matplotlib version

  • Operating system: arch linux / fedora
  • Matplotlib version: master, but present as far back as mpl3.0 at least.
  • Matplotlib backend (print(matplotlib.get_backend())): ps
  • Python version: 38
  • Jupyter version (if applicable): no
  • Other libraries: ghostscript 9.50 on arch; 9.27 on fedora

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions