Reputation: 2634
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?
Upvotes: 1
Views: 486
Reputation: 2634
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.
Upvotes: 0
Reputation: 1097
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.
Upvotes: 1