diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-09-16 19:25:49 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-09-16 19:25:49 (GMT) |
commit | fa23ff84feb8a6ddb66b4bd0ba3ef951cf5ff768 (patch) | |
tree | 4963d860fa8463d7c77e386fef67e5cea17c44ee | |
parent | dec53d22986c8d2c44a30806a2c8ed03bbe24768 (diff) | |
parent | 52d216a87451c867c92691a4483cd85d3e5b906f (diff) | |
download | Doxygen-fa23ff84feb8a6ddb66b4bd0ba3ef951cf5ff768.zip Doxygen-fa23ff84feb8a6ddb66b4bd0ba3ef951cf5ff768.tar.gz Doxygen-fa23ff84feb8a6ddb66b4bd0ba3ef951cf5ff768.tar.bz2 |
Merge pull request #223 from albert-github/feature/bug_735198
Bug 735198 - plantUML requires epstopdf for building PDF files
-rw-r--r-- | src/plantuml.cpp | 13 |
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(); + } } |