jodconvert-cli

命令行工具

可以用来测试配置,环境等是否ok .
语法:

jodconverter-cli [options] infile outfile [infile outfile ...]
or

jodconverter-cli [options] -f output-format infile [infile ...]

infile: 待转换的文件 , 当使用-f参数时, infile可以使用通配符来实现多文件转换.

-f , --output-format : 输出格式 , 如pdf.

-g, --disable-opengl : 禁用opengl

-i,--office-home: 指定officehome

-d, --output-dircetory : 输出目录 , 默认同input目录 ;

-c, --connection-url : 使用online服务时的url .

其他参数:

### 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.

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 137,073评论 19 139
  • 一、Python简介和环境搭建以及pip的安装 4课时实验课主要内容 【Python简介】: Python 是一个...
    _小老虎_阅读 6,385评论 0 10
  • .bat脚本基本命令语法 目录 批处理的常见命令(未列举的命令还比较多,请查阅帮助信息) 1、REM 和 :: 2...
    庆庆庆庆庆阅读 8,578评论 1 19
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 3,352评论 0 3
  • 是的,我变了,从你离开之后,我就像变了一个人。原本开朗话多爱笑的人变得沉默少言,爱上醉饮。我以前从来没有想过,你离...
    我是憨憨你是谁阅读 174评论 0 0

友情链接更多精彩内容