pdflatex error: epstopdf Output filename not allowed in restricted mode.

The error

error: epstopdf Output filename not allowed in restricted mode

may occur if you include .eps files not in the same directory or a subdirectory of your .tex file. E.g. a file that is in a directory above or adjacent to your current level.

Fix pdflatex error: command line

include the -shell-escape option in your pdflatex command

Example:

pdflatex -shell-escape myfile.tex

Fix pdflatex error: TeXmaker

click Options > Configure and add -shell-escape right after pdflatex in the PdfLaTeX command box.

Example of problem pdflatex directory setup

files:

~/work/report.tex
~/matlab/plot.eps

then

includegraphics{../matlab/plot.eps}

will trigger this error until -shell-escape is used.

Categories:

Updated: