libreoffice

开发函数计算的正确姿势——借助LibreOffice将Word转换成PDF

℡╲_俬逩灬. 提交于 2019-11-30 00:30:07
前言 首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute):函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。函数计算更多信息参考。 Funcraft:Funcraft 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API 网关、日志服务等资源。它通过一个资源配置文件(template.yml),协助您进行开发、构建、部署操作。Funcraft 的更多文档参考。 LibreOffice:LibreOffice 是由文档基金会开发的自由及开放源代码的办公室套件。LibreOffice套件包含文字处理器、电子表格、演示文稿程序、矢量图形编辑器和图表工具、数据库管理程序及创建和编辑数学公式的应用程序。参见维基百科词条 备注: 本文介绍的技巧需要 Funcraft 版本大于等于 3.0.0-beta.7 。 依赖工具 本项目是在 MacOS 下开发的,涉及到的工具是平台无关的,对于 Linux 和 Windows 桌面系统应该也同样适用。在开始本例之前请确保如下工具已经正确的安装,更新到最新版本,并进行正确的配置。 Docker Funcraft Fun 工具依赖于

How to convert OpenDocument spreadsheets to a pandas DataFrame?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 21:21:56
The Python library pandas can read Excel spreadsheets and convert them to a pandas.DataFrame with pandas.read_excel(file) command. Under the hood, it uses xlrd library which does not support ods files. Is there an equivalent of pandas.read_excel for ods files? If not, how can I do the same for an Open Document Formatted spreadsheet (ods file)? ODF is used by LibreOffice and OpenOffice. davidovitch You can read ODF (Open Document Format .ods ) documents in Python using the following modules: odfpy / read-ods-with-odfpy ezodf pyexcel / pyexcel-ods py-odftools simpleodspy Using ezodf, a simple

How to convert .docx to .odt with Libreoffice on Ubuntu bash

为君一笑 提交于 2019-11-29 18:41:00
问题 There is a problem for converting DOCX to PDF using Libreoffice.(in RTL documents) but converting same document saved in ODT format will works fine. Anyone knows how to convert an existing DOCX file to ODT using Ubuntu bash? 回答1: Then you can use this command directly from command line libreoffice --headless --convert-to odt *.docx 回答2: You can directly save it to odt format in Libre Office. Click on save as Select ODT as format Name the file Click on ok 来源: https://stackoverflow.com

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

倖福魔咒の 提交于 2019-11-29 09:24:51
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... Damn. root@server: sudo -i -u someotheruser $

Running libreoffice from php exec()

吃可爱长大的小学妹 提交于 2019-11-29 03:44:37
I have installed libreoffice headless on a freebsd-server with apache in order to convert documents programmatically (e.g. odt->pdf). It works from the command line! But my goal is to be able to do it from php. This demands that the web-user (www) can run libreoffice. But it cannot. When running libreoffice as my own user, I get: %libreoffice --headless -convert-to pdf Litteraturundervisningogit.doc javaPathHelper: not found #This should not be a problem, says people on the net. convert /usr/home/bundsgaard.net/www/jeppe/foredrag/Litteraturundervisningogit.doc -> /usr/home/bundsgaard.net/www

LibreOffice

限于喜欢 提交于 2019-11-29 03:31:34
/*--> */ /*--> */ 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 view –>> navigator (outline, heading) 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

How to convert OpenDocument spreadsheets to a pandas DataFrame?

核能气质少年 提交于 2019-11-28 17:25:26
问题 The Python library pandas can read Excel spreadsheets and convert them to a pandas.DataFrame with pandas.read_excel(file) command. Under the hood, it uses xlrd library which does not support ods files. Is there an equivalent of pandas.read_excel for ods files? If not, how can I do the same for an Open Document Formatted spreadsheet (ods file)? ODF is used by LibreOffice and OpenOffice. 回答1: You can read ODF (Open Document Format .ods ) documents in Python using the following modules: odfpy /

Excel VLOOKUP where the key is not in the first column

三世轮回 提交于 2019-11-28 12:47:25
"The range where the lookup value is located. Remember that the lookup value should always be in the first column in the range for VLOOKUP to work correctly. For example, if your lookup value is in cell C2 then your range should start with C." But sometimes I want to be able to do dual-direction lookups. Ie, lookup using a key in column A to get the value in column B AND at the same time, in other formulas, lookup the value in B to get the value in A. The only way I know is to add a column C which mirrors A, then use AB for the first lookup, and BC for the second lookup. But there has to be

OpenOffice command line PDF creation

大兔子大兔子 提交于 2019-11-28 06:30:15
I have some documentation written in OpenOffice, and I would like to include some of it as PDF files in the final build deliveries. I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a command line command? OscarRyz Art of Solving has also a very good API to perform the conversion in Java. It is a little slow but it is simple enough. This is how I use it: File inputFile = new File("C:\\oreyes\\hola.doc"); File outputFile = new File("C:\\oreyes\\hola.pdf"); OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100); try

Getting python to import uno / pyuno

天大地大妈咪最大 提交于 2019-11-28 05:45:44
问题 I've been searching all day for a solution and can't seem to find anything that works, just a bunch of a leads that seem outdated or non-functional. I'm basically trying to get to a hello-world state either in python so that I can start programmatically creating document pages from database data. I tried installing both libreoffice and openoffice. I installed the file in the default location (i did windows 7 (C:\Program Files (x86)\LibreOffice 4) and installed ubuntu 14 and tried the default