• libreoffice转office文档为pdf文档


    libreoffice5.0 --invisible --convert-to pdf:writer_pdf_Export --outdir  "/root/" "bb.xls"

    九域技术朱亮亮 2015/12/1 10:11:57

    Options:
    --minimized    keep startup bitmap minimized.
    --invisible    no startup screen, no default document and no UI.
    --norestore    suppress restart/restore after fatal errors.
    --quickstart   starts the quickstart service
    --nologo       don't show startup screen.
    --nolockcheck  don't check for remote instances using the installation
    --nodefault    don't start with an empty document
    --headless     like invisible but no user interaction at all.
    --help/-h/-?   show this message and exit.
    --version      display the version information.
    --writer       create new text document.
    --calc         create new spreadsheet document.
    --draw         create new drawing.
    --impress      create new presentation.
    --base         create new database.
    --math         create new formula.
    --global       create new global document.
    --web          create new HTML document.
    -o             open documents regardless whether they are templates or not.
    -n             always open documents as new files (use as template).

    --display <display>
          Specify X-Display to use in Unix/X11 versions.
    -p <documents...>
          print the specified documents on the default printer.
    --pt <printer> <documents...>
          print the specified documents on the specified printer.
    --view <documents...>
          open the specified documents in viewer-(readonly-)mode.
    --show <presentation>
          open the specified presentation and start it immediately
    --accept=<accept-string>
          Specify an UNO connect-string to create an UNO acceptor through which
          other programs can connect to access the API
    --unaccept=<accept-string>
          Close an acceptor that was created with --accept=<accept-string>
          Use --unnaccept=all to close all open acceptors
    --infilter=<filter>[:filter_options]
          Force an input filter type if possible
          Eg. --infilter="Calc Office Open XML"
              --infilter="Text (encoded):UTF8,LF,,,"
    --convert-to output_file_extension[:output_filter_name[:output_filter_options]] [--outdir output_dir] files
          Batch convert files (implies --headless).
          If --outdir is not specified then current working dir is used as output_dir.
          Eg. --convert-to pdf *.doc
              --convert-to pdf:writer_pdf_Export --outdir /home/user *.doc
              --convert-to "html:XHTML Writer File:UTF8" *.doc
              --convert-to "txt:Text (encoded):UTF8" *.doc
    --print-to-file [-printer-name printer_name] [--outdir output_dir] files
          Batch print files to file.
          If --outdir is not specified then current working dir is used as output_dir.
          Eg. --print-to-file *.doc
              --print-to-file --printer-name nasty_lowres_printer --outdir /home/user *.doc
    --cat files
          Dump text content of the files to console
          Eg. --cat *.odt
    --pidfile file
          Store soffice.bin pid to file.
    -env:<VAR>[=<VALUE>]
          Set a bootstrap variable.
          Eg. -env:UserInstallation=file:///tmp/test to set a non-default user profile path.

    Remaining arguments will be treated as filenames or URLs of documents to open.
  • 相关阅读:
    centos7下mysql双主+keepalived
    Nginx 性能优化有这篇就够了!
    mysql对自增主键ID进行重新排序
    nginx 配置文件 2019-12-20
    zabbix服务端接收的数据类型,便于编写脚本向服务端提交数据
    zabbix自动注册,实现自动添加机器,减少人工干预
    zabbix企业微信告警配置教程
    websocket 连接测试端口服务是否正常代码
    mongodb Sort排序能够支持的最大内存限制为32M Plan executor error during find: FAILURE
    rabbitmq 的安装配置使用
  • 原文地址:https://www.cnblogs.com/si812cn/p/5009428.html
Copyright © 2020-2023  润新知