I am trying to create a latex document that has a graphic: temp.pdf
\begin{figure}
\centering
\includegraphics[width=30cm,scale=1]{temp.pdf}
\end{figure}
This works fine if the graphic file is present, however if it is not, I get the text:
temp.pdf in the document.
How can I switch this off so that if temp.pdf is not present, then latex simply ignores the includegraphics command.
\includegraphics; How to check image exists or not? – Werner Nov 28 '15 at 20:31