jodconvert-cli

命令行工具

可以用來(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.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,555評(píng)論 19 139
  • 一、Python簡(jiǎn)介和環(huán)境搭建以及pip的安裝 4課時(shí)實(shí)驗(yàn)課主要內(nèi)容 【Python簡(jiǎn)介】: Python 是一個(gè)...
    _小老虎_閱讀 6,333評(píng)論 0 10
  • .bat腳本基本命令語(yǔ)法 目錄 批處理的常見命令(未列舉的命令還比較多,請(qǐng)查閱幫助信息) 1、REM 和 :: 2...
    慶慶慶慶慶閱讀 8,537評(píng)論 1 19
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom閱讀 3,203評(píng)論 0 3
  • 是的,我變了,從你離開之后,我就像變了一個(gè)人。原本開朗話多愛笑的人變得沉默少言,愛上醉飲。我以前從來(lái)沒(méi)有想過(guò),你離...
    我是憨憨你是誰(shuí)閱讀 171評(píng)論 0 0

友情鏈接更多精彩內(nèi)容