libreoffice

Command `libreoffice --headless --convert-to pdf test.docx --outdir /pdf` is not working

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have to wait for long after using this LibreOffice command which is intended to convert DOCX into PDF: libreoffice --headless --convert-to pdf test.docx --outdir /pdf But I'm getting no response and no error. No file is converted. It looks like terminal is hanging. So, is there is any way to track the error? 回答1: I would first of all try it with giving absolute paths to the command. I suspect that the libreoffice binary does not work -- you have to locate the soffice binary and see if that works. Then, your --convert-to pdf is not

GLIBCXX_3.4.9 not found ubuntu

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: i am trying to convert .doc file to .html file using shell_exec command php.. for this i have written the below code: $result = shell_exec ( "soffice --headless --convert-to html /opt/lampp/htdocs/converter/public/uploads/resume/" . $filename . " 2>&1" ); echo $result ; but i am getting this when i run the project from the browser: / usr / lib / libreoffice / program / oosplash : /opt/ lampp / lib / libstdc ++. so . 6 : version `GLIBCXX_3.4.9' not found (required by /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3) /usr

Libreoffice --headless refuses to convert unless root, won't work from PHP script

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Running headless Ubuntu server 12.something. root@server: chown www-data /my/path/ -R root@server: chgrp www-data /my/path/ -R root@server: chmod 755 /my/path/ -R root@server: libreoffice --headless --convert-to pdf:writer_pdf_Export /my/path/foo.ppt --outdir /my/path convert /my/path/foo.ppt -> /my/path/foo.pdf Works like a charm. root@server: sudo -i -u www-data $ libreoffice --headless --convert-to pdf:writer_pdf_Export /my/path/foo.ppt --outdir /my/path convert /my/path/foo.ppt -> /my/path/foo.pdf Error: Please reverify input parameters.

docker安装LibreOffice

匿名 (未验证) 提交于 2019-12-03 00:11:01
Dockerfile:      FROM centos # RUN yum install kde-l10n-Chinese -y # RUN yum install glibc-common -y # RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 RUN yum update -y && yum install telnet -y && yum remove epel-release -y \ && yum update -y \ && yum install epel-release -y \ && yum groupinstall "Fonts" -y \ && yum groupinstall "Input Methods" -y \ && rm -rf /etc/localtime \ && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && yum -y install kde-l10n-Chinese \ && yum -y reinstall glibc-common && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 \ && yum clean all ENV LC_ALL zh_CN.utf8 #

centos7 下安装 LibreOffice SpringBoot实现Word转PDF (字体安装篇--二)

匿名 (未验证) 提交于 2019-12-02 23:57:01
1. 获取字体 windows C:\Windows\Fonts simsun.ttc simhei.ttf msyh.ttf msyhbd.ttf pdf 2. 新建文件夹 linux /usr/share/fonts CustomizedFonts windows 注意: 如果在/usr/sharefontsyum -y install fontconfig yum -y install fontconfig chmod -R 755 /usr/share/fonts/ CustomizedFonts 3. ttmkfdir ttmkfdir fonts.scale yum -y install ttmkfdir vi /etc/fonts/fonts.conf 增加一行,如下图所示 <dir>/usr/share/fonts/CustomizedFonts</dir> 4. 信息 fc-cache 5. 校验是否安装成功 使用fc-list 来源:博客园 作者: 链接:https://www.cnblogs.com/hg-super-man/p/11453053.html

LibreOffice

匿名 (未验证) 提交于 2019-12-02 23:57:01
/*--> */ /*--> */ /*--> */ /*--> */ /*--> */ LibreOffice Table of Contents 1. Writer 1.1. track changes 1.2. navigator 2. impress 2.1. gif animation 2.2. Adding and formatting text 2.2.1. font resizing 2.3. font 2.4. Footer and header 2.5. bullet 1 Writer 1.1 track changes Edit/track changes 1.2 navigator 2 impress F1 # help F2 # insert text F5 # play 2.1 gif animation To create an animated GIF: Select an object or group of objects that you want to include in your animation and choose Insert - Animated Image. Do one of the following: Click the Apply Object button Note Icon to add a single

Linux安装libreoffice实现word转换pdf功能

匿名 (未验证) 提交于 2019-12-02 21:56:30
Linux 下安装 libreoffice 实现word转换pdf 1、解压插件 tar - zxvf LibreOffice_5 . 2.7 _Linux_x86 - 64 _rpm . tar . gz tar - zxvf LibreOffice_5 . 2.7 _Linux_x86 - 64 _rpm_helppack_zh - CN . tar . gz tar - zxvf LibreOffice_5 . 2.7 _Linux_x86 - 64 _rpm_langpack_zh - CN . tar . gz 2、安装插件(根据解压路径自行修改) yum install ./ LibreOffice_5 . 2.7 _Linux_x86 - 64 _rpm / RPMS /*.rpm yum install ./LibreOffice_5.2.7_Linux_x86-64_rpm_helppack_zh-CN/RPMS/*.rpm yum install ./LibreOffice_5.2.7_Linux_x86-64_rpm_langpack_zh-CN/RPMS/*.rpm 3、设置libreoffice为系统服务,并启动该服务 ( 1 ) libreoffice 安装后可执行文件目录: / opt / libreoffice5 . 2 / program /

假如你不小心干掉了系统,你该怎么办?(一次手贱的记录 ~ Ubuntu and Python3.6)

匿名 (未验证) 提交于 2019-12-02 21:53:52
多年未犯低级错误,今天犯了个不大不小的错误,记录下生活点滴吧 今天早上脑海里想了下,如果电脑挂了我要备份哪些东西?然后中午休息的时候就列了一下,没想到晚上就悲剧了... 这个是中午写的: ## If I to bak **`浏览器书签备份`** ~/桌面(**先push到github**) ~/下载(Linux软件备份) ~/图片(重要目录:jpg、Skill) ~/文档(PDF) 自己电脑之前一直用的 Python2.7 和 Python3.6 版本,现在全部更新到 Python3.7 了,正好今天晚上有空就随手一打命令来卸载原来版本 sudo apt-get autoremove python3.6 ,然后习惯性的输入了 yes ,1s的停顿,看到谷歌浏览器消失了,这时候才发现~呵呵哒了。再按 Ctrl+C 来停止已经没用了...... (((φ(◎ロ◎;)φ))) 出于职业习惯,便把依赖项备份了一下:(附录部分) 然后赶紧乘着没关机前,执行备份相关的工作啊~大体步骤: 再开个PC,SSH远程登录一下(万一锁屏Ubuntu肯定进不去了) 重新安装一下谷歌浏览器,把个书签导出下( dpkg -i xxxx ) 然后就是连接下FTP把该备份的进行备份一下(昨天晚上还想要不要弄个文件同步服务器,看来是要得) 修复一下系统依赖 接着就重新安装相关软件 备份目录:

LibreOffice Macro always show #NULL! after reopening the file

混江龙づ霸主 提交于 2019-12-02 17:02:21
问题 I wrote a macro in LibreOffice Calc and it is able to run correctly. But if I close the file and reopen, it always show #NULL! instead of the correct value. What am I missing here? My macro code Rem Attribute VBA_ModuleType=VBAModule Option VBASupport 1 Function Calculate(CalType As String) As Double ' ' Calculate Macro ' Dim i As Integer Calc = 0 i = 1 Do While Not IsEmpty(Cells(i, 2)) If (Cells(i, 3).Value = CalType And (Cells(i,2) = "A" Or Cells(i,2) = "B")) Then Calculate = Calculate +

How do I embed source code or HTML in Open Office Org Presentations without using screenshots?

这一生的挚爱 提交于 2019-12-02 16:06:42
I need to write a lot of class courses presentations to my programming class, and I constantly need to show source code (mainly C code). I don't find a easy way to: Copy my source code from my editor (kate) and Paste it formated and with source highlighted to an Open Office Presentation (OOP). What I use to do is a snapshot if the code is small, or to stop presentation and open Kate in the datashow if it is too big. In this other question some suggest to embed HTML code. So I installed QSource-Highlight that easily convert C code to HTML (also gnu source-highlight, code2html, and so on). None