plantuml.jarfile not too big and to facilitate its integration with other products. Fortunately, it is possible to use some kind of dynamic linkage, so that those libraries are not needed for compilation or execution if not present. A SVG file is first generated, then translated to PDF. Note that in some case, shadowing is an issue for PDF export, so you can find here a way to disable it.
plantuml.jar(this is important) Now, you can use the
java -jar plantuml.jar -pdf diagram.txt
format="pdf"in the ant task:
<!-- task definition -->
<taskdef name="plantuml" classname="net.sourceforge.plantuml.ant.PlantUmlTask" classpath="plantuml.jar" />
<!-- process diagram.txt file -->
<fileset file="diagram.txt" />