1

I'm trying to get Sphinx on Windows to generate a PDF with the rst2pdf plugin. My reStructuredText files make use of the PlantUML Sphinx extension.

When generating a PDF, I get the message

SphinxWarning: WARNING: epstopdf command 'epstopdf' cannot be run

How do I get this working?

Frank Kusters
  • 2,544
  • 2
  • 21
  • 30

2 Answers2

1

I solved this for Ubuntu by installing texlive-font-utils:

sudo apt install texlive-font-utils

This will make the epstopdf command available and fixed my Sphinx build with PlantUML.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Roberto
  • 958
  • 13
  • 33
0

epstopdf is a Perl application, which can be downloaded from CTAN. Install Strawberry Perl, and execute epstopdf.pl to test it:

D:\epstopdf>perl epstopdf.pl
Error: Input filename missing (try --help for more information)

Add the following to conf.py:

plantuml_epstopdf = 'perl "D:\epstopdf\epstopdf.pl"'

Install Ghostscript, and add it to the path:

set PATH=%PATH%;"C:\Program Files (x86)\gs\gs9.20\bin"

Now you should be able to generate PDF's.

Frank Kusters
  • 2,544
  • 2
  • 21
  • 30