免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6699 | 回复: 2
打印 上一主题 下一主题

在centos里如何调用openoffice在后台(命令下)将doc转换成pdf? [复制链接]

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-10 14:23 |只看该作者 |倒序浏览
我的系统是centos 5.4

我用“yum -y install openoffice.org-langpack-zh_CN”  把openoffice已经装好了,听同事说还需要一个什么插件?请问这个问题如何实现?能详细一些小弟将不胜感激!

论坛徽章:
0
2 [报告]
发表于 2012-02-10 14:48 |只看该作者
man libreoffice,呵呵我没有安装openoffice,不过应该有差不多的参数
  1. -convert-to  output_file_extension[:output_filter_name]  [-outdir output_dir]
  2.        file...
  3.               Batch converts files.  If -outdir is not specified  then  the  current
  4.               working  directory  is  used as the output directory for the converted
  5.               files.

  6.               Examples:

  7.               -convert-to pdf *.doc

  8.               Converts all .doc files to PDFs.

  9.               -convert-to pdf:writer_pdf_Export -outdir /home/user *.doc

  10.               Converts all .doc files to PDFs using the settings in the  Writer  PDF
  11.               export dialog and saving them in /home/user.
复制代码

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
3 [报告]
发表于 2012-02-10 15:22 |只看该作者
貌似不需要另外安装吧,安装openoffice的时候就安装好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP