Commit fa23ff84 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge pull request #223 from albert-github/feature/bug_735198

Bug 735198 - plantUML requires epstopdf for building PDF files
parents dec53d22 52d216a8
......@@ -20,7 +20,7 @@
#include <qdir.h>
//static const int maxCmdLine = 40960;
static const int maxCmdLine = 40960;
QCString writePlantUMLSource(const QCString &outDir,const QCString &fileName,const QCString &content)
{
......@@ -93,5 +93,16 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp
QFile(QCString(baseName)+".pu").remove();
}
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