常用 #### 安装: http://plantuml.com/zh/download:: $ wget http://sourceforge.net/projects/plantuml/files/plantuml.jar 基本使用:: $ java -jar /plantuml.jar -charset UTF-8 $file * 各种各样的使用: https://plantuml.com/zh/running 环境变量:: PLANTUML_LIMIT_SIZE: 默认4096 可手动修改: $ set PLANTUML_LIMIT_SIZE=8192 or $ setenv PLANTUML_LIMIT_SIZE 8192 or $ java -DPLANTUML_LIMIT_SIZE=8192 -jar /path/to/plantuml.jar ... 相关参数: +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | Param name | Short param name | Output format | Comment | +====================+===================+=======================================+================================================+ | -tpng | -png | PNG Default | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tsvg | -svg | SVG Further details can be found here | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -teps | -eps | EPS Further details can be found here | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -teps:text | -eps:text | EPS This option keeps text as text | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tpdf | -pdf | PDF Further details can be found here | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tvdx | -vdx | VDX Microsoft Visio Document | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -txmi | -xmi | XMI Further details can be found here | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tscxml -scxml | SCXML | | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -thtml | -html | HTML | Alpha feature: do not use | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -ttxt | -txt | ATXT | ASCII art. Further details can be found here | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tutxt | -utxt | UTXT | ASCII art using Unicode characters | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tlatex -latex | LATEX | Further details can be found here | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tlatex:nopreamble | -latex:nopreamble | LATEX | Contains no LaTeX preamble creating a document | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | -tbraille | -braille | PNG Braille image | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+ | | | | | +--------------------+-------------------+---------------------------------------+------------------------------------------------+