Commit 52d216a8 authored by albert-github's avatar albert-github

Bug 735198 - plantUML requires epstopdf for building PDF files

Added conversion from eps to pdf, analogous to dia and msc
parent 83c1a127
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <qdir.h> #include <qdir.h>
//static const int maxCmdLine = 40960; static const int maxCmdLine = 40960;
QCString writePlantUMLSource(const QCString &outDir,const QCString &fileName,const QCString &content) QCString writePlantUMLSource(const QCString &outDir,const QCString &fileName,const QCString &content)
{ {
...@@ -93,5 +93,16 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp ...@@ -93,5 +93,16 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp
QFile(QCString(baseName)+".pu").remove(); QFile(QCString(baseName)+".pu").remove();
} }
portable_sysTimerStop(); portable_sysTimerStop();
if ( (format==PUML_EPS) && (Config_getBool("USE_PDFLATEX")) )
{
QCString epstopdfArgs(maxCmdLine);
epstopdfArgs.sprintf("\"%s.eps\" --outfile=\"%s.pdf\"",baseName,baseName);
portable_sysTimerStart();
if (exitCode=portable_system("epstopdf",epstopdfArgs)!=0)
{
err("Problems running epstopdf. Check your TeX installation! Exit code: %d\n",exitCode);
}
portable_sysTimerStop();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment