命令行工具
可以用來(lái)測(cè)試配置,環(huán)境等是否ok .
語(yǔ)法:
jodconverter-cli [options] infile outfile [infile outfile ...]
or
jodconverter-cli [options] -f output-format infile [infile ...]
infile: 待轉(zhuǎn)換的文件 , 當(dāng)使用-f參數(shù)時(shí), infile可以使用通配符來(lái)實(shí)現(xiàn)多文件轉(zhuǎn)換.
-f , --output-format : 輸出格式 , 如pdf.
-g, --disable-opengl : 禁用opengl
-i,--office-home: 指定officehome
-d, --output-dircetory : 輸出目錄 , 默認(rèn)同input目錄 ;
-c, --connection-url : 使用online服務(wù)時(shí)的url .
其他參數(shù):
### Parameters
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#infile)infile
The input file to convert (required). When used with the **-f** switch, infile may contain wildcards to match multiple files to convert. Thus, it is possible with the jodconverter-cli tool to convert more than 1 file at the time.
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#outfile)outfile
The target file which is the result of the conversion.
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-a---application-context-)-a, --application-context
Application context file (optional).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-c---connection-url-)-c, --connection-url
Remote LibreOffice Online server URL for conversion (optional).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-d---output-directory-)-d, --output-directory
Output directory (optional; defaults to input directory).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-f---output-format-)-f, --output-format
Output format (e.g. pdf).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-g---disable-opengl)-g, --disable-opengl
Disable OpenGL (optional).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-h---help)-h, --help
Displays help at the command prompt.
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-i---office-home-)-i, --office-home
OOo home directory (optional; defaults to auto-detect). See [Configuration](https://github.com/sbraconnier/jodconverter/wiki/Configuration#file_folderofficehome).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-k---kill-process)-k, --kill-process
Kill existing office process (optional). See [Configuration](https://github.com/sbraconnier/jodconverter/wiki/Configuration#white_check_markkillexistingprocess).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-m---process-manager-)-m, --process-manager
Class name of the process manager to use (optional; defaults to auto-detect). See [Configuration](https://github.com/sbraconnier/jodconverter/wiki/Configuration#capital_abcdprocessmanager).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-o---overwrite)-o, --overwrite
Overwrite existing output file (optional; defaults to false).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-p---port-)-p, --port
Office socket port (optional; defaults to 2002). See [Configuration](https://github.com/sbraconnier/jodconverter/wiki/Configuration#1234portnumbersandorcapital_abcdpipenames).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-r---registry-)-r, --registry
Document formats registry configuration file (optional).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-t---timeout-)-t, --timeout
Maximum conversion time in seconds (optional; defaults to 120). See [Configuration](https://github.com/sbraconnier/jodconverter/wiki/Configuration#watchtaskexecutiontimeout).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-u---user-profile-)-u, --user-profile
Use settings from the given OOo user installation directory (optional). See [Configuration](https://github.com/sbraconnier/jodconverter/wiki/Configuration#file_foldertemplateprofiledir).
#### [](https://github.com/sbraconnier/jodconverter/wiki/Command-Line-Tool#-v---version)-v, --version
Displays version information and exit.