summaryrefslogtreecommitdiffstats
path: root/src/plantuml.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-09-07 09:04:27 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-09-07 09:04:27 (GMT)
commit52d216a87451c867c92691a4483cd85d3e5b906f (patch)
tree40e4df4da3d2a21e0437d970ff63372b2d47e76d /src/plantuml.cpp
parent83c1a1278a48cbcd5d31f721d247e611c61c4661 (diff)
downloadDoxygen-52d216a87451c867c92691a4483cd85d3e5b906f.zip
Doxygen-52d216a87451c867c92691a4483cd85d3e5b906f.tar.gz
Doxygen-52d216a87451c867c92691a4483cd85d3e5b906f.tar.bz2
Bug 735198 - plantUML requires epstopdf for building PDF files
Added conversion from eps to pdf, analogous to dia and msc
Diffstat (limited to 'src/plantuml.cpp')
-rw-r--r--src/plantuml.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plantuml.cpp b/src/plantuml.cpp
index 7e2863e..42915be 100644
--- a/src/plantuml.cpp
+++ b/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();
+ }
}