libreoffice

R Copy from Clipboard in Ubuntu Linux

时光怂恿深爱的人放手 提交于 2020-01-04 12:16:17
问题 I want to copy from the Ubuntu Linux clipboard into R Studio. My workflow consists of moving back and forth between R Studio and LibreOffice Calc. I've found the following code for writing to a Linux X11 clipboard, but I don't know how to read from it. Write to X11 Linux clipboard: clipboard <- function(x, sep="\t", row.names=FALSE, col.names=TRUE){ con <- pipe("xclip -selection clipboard -i", open="w") write.table(x, con, sep=sep, row.names=row.names, col.names=col.names) close(con) } #

Create Flowchart in LibreOffice using Python

青春壹個敷衍的年華 提交于 2020-01-04 05:08:12
问题 There plenty of examples on how to use Python to control the LibreOffice text document and spreadsheet but very little documentation on how to use the drawing program. I am trying to figure out how to draw a flowchart or at least some shapes in LibreOffice using Python. I am using Windows 10 and the Python 3.3 that came with LibreOffice 5. There is a very good example of how to use spreadsheet LibreOffice Python example In the example the following lines are common if you use the text

unoconv export .xlsx file into image like png

↘锁芯ラ 提交于 2020-01-04 02:30:12
问题 I have successfully installed unoconv in my ubuntu 14.04 64 bit. I want to export the first sheet of an .xlsx file into image like png or jpg. I tried unoconv -l & 9998 ## this is to start the python listener unoconv -f png abc.xlsx I get the following: unoconv: UnoException during export phase: Unable to store document to file:///var/virtual/abc.png (ErrCode 3088) Properties: ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"draw

Excel: COUNTIF function treats 'less than' character as an operator

蹲街弑〆低调 提交于 2020-01-03 17:01:41
问题 Pre-read note: I'm using LibreOffice rather than Excel, but most functions should apply to both. I'm making a spreadsheet where I have a bunch of data, and for every property (such as # of employees or a name) I need a function that calculates how many rows contain each distinct value. I already have the distinct values extracted, and now I'm using the following function to calculate how many rows have each value: =COUNTIF(start:end;value) . (Note that the semicolon is LibreOffice's way of

MySQL Query: Query All Entries Older Than 1 Year

谁都会走 提交于 2020-01-02 07:28:30
问题 I am putting together a membership database for a nonprofit charity in LibreOffice, but have no experience in mysql queries so I would appreciate the help. I am trying to create a query that displays all records where the membership signup date field ( PaymentDate ) is older than 1 year of the current date AND a boolean value of another field ( AwaitingRenewal ) is NO. The date is in 05/03/85 format. Thanks for any help you can give me! 回答1: You can do something like: select * from `members`

LibreOffice exe file to convert word to pdf in windows

只谈情不闲聊 提交于 2020-01-02 06:58:10
问题 In Ubuntu terminal libreoffice --headless --convert-to pdf test.docx I convert document file to pdf file is work fine. *My doubt is in windows system without install libreoffice to need to convert docuemnt to pdf (i.e) without install libreoffice software only libreoffice exe or bat file convert word to pdf is possible? *Or In java code to execute command prompt to using microsoft office to convert word to pdf is possible? 回答1: You can try with Libreoffice portable with the cli :

word转pdf

我们两清 提交于 2020-01-01 21:42:01
很多人在工作经常会遇到word转pdf功能,word转pdf还是比较复杂,网上各种包,如python的各种转换包,其实是存在很多问题 的,尤其是对比较复杂的格式,真正的还的是调用组件来转换,这里介绍的是LibreOffice,以MAC环境为例,没有装LibreOffice的 可以通过brew install LibreOffice 安装,安装成功具体应用代码如下: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 # Author:Eric.yue 4 5 from subprocess import Popen, PIPE 6 def convert(src, dst): 7 d = {'src': src, 'dst': dst} 8 9 command = '/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --invisible --convert-to pdf %(src)s --outdir %(dst)s' % d 10 11 process = Popen(command, stdout=PIPE, stderr=PIPE, shell=True) # I am aware of consequences of using `shell

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

北慕城南 提交于 2019-12-29 06:43:47
问题 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

轻松搭建基于 Serverless 的文档图片在线转换服务

主宰稳场 提交于 2019-12-26 11:02:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 核心优势 异构服务:支持多种运行环境 用于媒体文件转换的库或者二进制往往和业务的运行环境不同,对计算资源的需求也有较大的差异。 函数计算支持多种运行环境,支持为独立的转换函数定制算力单位,根据请求量自动伸缩,让核心业务和支持业务做到较好的分离。 灵活触发:支持多种触发方式 函数计算既可以通过集成事件源服务(OSS、API 网关、日志服务和表格存储)产生事件来触发函数执行,也可以通过 HTTP 触发器使用 HTTP 请求触发函数执行,还支持 API/SDK 直接调用函数。 弹性伸缩: 轻松应对负载的波峰波谷 函数计算提供跨可用区的容灾能力,根据请求量自动进行毫秒级弹性扩容,快速调度计算资源,轻松应对业务洪峰。 预留实例功能彻底消除实例冷启动带来的延时毛刺,为在线应用迁移至函数计算扫清障碍! 工程效率:搭建速度快,运维代价小 使用函数计算,开发者无需管理服务器等基础设施,只需编写并上传代码,函数计算准备好计算资源,弹性可靠地运行任务,并提供完备的日志与监控报警服务,帮助服务快速上线且免除繁琐的运维操作。 最佳实践 快速开发一个分布式 Puppeteer 网页截图服务 示例搭建了一个具备弹性的 Puppeteer 网页截图服务,实现的功能为:客户端将想要截图的网页地址发送给函数,函数负责渲染网页内容,并截图返回。

Linux系统下word转pdf,xls转pdf,ppt转pdf

我的未来我决定 提交于 2019-12-25 18:28:33
word转换pdf的技术方案,供参考。【doc/docx/ppt/pptx/xls/xlsx均支持转换】 本方案是 Java结合shell命令完成 ,不同于以往的仅依赖java组件转换或打印pdf的方案,需要目标服务器安装office套件,可选方案有OpenOffice和LibreOffice[二者源是一家产品],安装完office套件后,使用office提供的脚本完成转换。安装LibreOffice时,为避免复杂的依赖关系,建议采用yum方式安装: yum install libreoffice 脚本内容:soffice --headless --invisible --convert-to pdf 源office文档路径 --outdir 目录存储目录 需要将以上脚本编写成sh脚本的形式,其中源路径需要配置成参数,由Java程序调用sh脚本时传入,转换结束后,到指定的目录可取到同名的pdf文档,再进行与业务相关的逻辑处理。注: 临时目录需要定期清理 ,防止存储过多临时文档,导致磁盘占满。 Java调用代码: Java代码 try { String shpath = "/tmp/topdf.sh" ; //脚本路径,脚本中需要将源doc路径配置成变量,由下行程序调用时入参 String cmd = "param" ; //xshell脚本入参 Process ps =