Permalink
Browse files

Bug 735198 - plantUML requires epstopdf for building PDF files

Added conversion from eps to pdf, analogous to dia and msc
  • Loading branch information...
albert-github committed Sep 7, 2014
1 parent 83c1a12 commit 52d216a87451c867c92691a4483cd85d3e5b906f
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/plantuml.cpp
@@ -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();
}
}

0 comments on commit 52d216a

Please sign in to comment.