libreoffice

How is a String marked as bold in a Libre Office flat XML (fods) file?

我是研究僧i 提交于 2020-02-16 10:40:09
问题 Looking at the raw XML from a .fods file: <table:table-column table:style-name="co1" table:default-cell-style-name="ce17"/> <table:table-row table:style-name="ro1"> <table:table-cell table:style-name="ce15" office:value-type="string" calcext:value-type="string"> <text:p>John Smith</text:p> </table:table-cell> </table:table-row> <table:table-row table:style-name="ro2"> <table:table-cell table:style-name="ce16" office:value-type="string" calcext:value-type="string"> <text:p>(123) 456-7890</text

Given an ISO 8601 week number, get date of first day of that week in LibreOffice Calc spreadsheet

被刻印的时光 ゝ 提交于 2020-01-24 08:47:08
问题 LibreOffice Calc spreadsheet offers a function ISOWEEKNUM to return the standard ISO 8601 week number of the specified date. I want the opposite. ➠ Given a standard week number, give me the date of the first day of that week (the Monday date). Passing integers is acceptable. Also nice if able to pass a string in standard format. Like this: DATE_OF_ISOWEEKNUM( 2017 , 42 ) ➝ date of Monday of week 42 in week-based year 2017 DATE_OF_ISOWEEKNUM( "2017-W42" ) ➝ date of Monday of week 42 in week

How to call an existing LibreOffice python macro from a python script

折月煮酒 提交于 2020-01-17 02:24:33
问题 Currently I call an existing existing LibreOffice macro with this: def OnLOtimestamp(self): try: pid= Popen(['lowriter '"'"'vnd.sun.star.script:fs2TimeStamp.py$fs2_TimeStamp?language=Python&location=user'"'"],shell=True).pid except OSError, e: self.notify_show("Timestamp Error",str(e)) self.ma2.SetLabel("Macro timestamp") self.database['Time_stamp'] = self.database['Time_stamp'] + 1 The key bit being the Popen call, where the macro name is fs2TimeStamp.py and the function is fs2_TimeStamp but

使用Unoconv和LibreOffice进行格式转换实现在线预览 doc,doxc,xls,xlsx,ppt,pptx 文件

烂漫一生 提交于 2020-01-08 17:11:27
此项目根据企业真实需求制作而成,希望能帮助大家解决在线预览的问题! 此项目已开源,欢迎大家来STAR 文章目录 一、配置管理 ① pom ② yml ③ controller ④ 文件格式转换工具类FileFormatConverToPDF ⑤ 在线预览previewPDFUtils ⑥ 启动类 二、测试验证 ①测试链接 ②测试效果 三、安装Unoconv ①yum安装Unoconv ②源码安装Unoconv 四、安装LibreOffice 一、配置管理 ① pom <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter

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

十年热恋 提交于 2020-01-08 14:23:44
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 函数计算(Function Compute) : 函数计算 是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。函数计算更多信息 参考 。 1 核心优势 异构服务:支持多种运行环境 用于媒体文件转换的库或者二进制往往和业务的运行环境不同,对计算资源的需求也有较大的差异。 函数计算支持多种运行环境,支持为独立的转换函数定制算力单位,根据请求量自动伸缩,让核心业务和支持业务做到较好的分离。 灵活触发:支持多种触发方式 函数计算既可以通过集成事件源服务(OSS、API 网关、日志服务和表格存储)产生事件来触发函数执行,也可以通过 HTTP 触发器使用 HTTP 请求触发函数执行,还支持 API/SDK 直接调用函数。 弹性伸缩: 轻松应对负载的波峰波谷 函数计算提供跨可用区的容灾能力,根据请求量自动进行毫秒级弹性扩容,快速调度计算资源,轻松应对业务洪峰。 预留实例功能彻底消除实例冷启动带来的延时毛刺,为在线应用迁移至函数计算扫清障碍! 工程效率:搭建速度快,运维代价小 使用函数计算,开发者无需管理服务器等基础设施,只需编写并上传代码,函数计算准备好计算资源,弹性可靠地运行任务

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

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

LibreOffice Calc execute a PostgreSQL Function

和自甴很熟 提交于 2020-01-05 04:26:08
问题 I'm currently using Microsoft Excel to execute Stored Procedures on a SQL Server database and it is working fine. If anyone is interested there are really nice instructions here http://datapigtechnologies.com/blog/index.php/running-a-sql-stored-procedure-from-excel-with-dynamic-parameters/ I was wondering if it's possible to do something like this with LibreOffice Calc and PostgreSQL. I know that LibreOffice supports PostgreSQL connections as you can create a PostgreSQL odb file but I was

VB.Net example for LibreOffice SDK

假如想象 提交于 2020-01-05 04:21:09
问题 The WriterDemo example uses VB.NET to interact with the UNO API. (The files are also included with the SDK download in file:///C:/Program Files/LibreOffice 5/sdk/examples/CLI/VB.NET/WriterDemo/ .) To build and run, I set up the command line environment according to https://api.libreoffice.org/docs/install.html, and then executed the Makefile using make WriterDemo.run . But it crashes on this line: xContext = Bootstrap.bootstrap() The error message: Unhandled Exception: System.Runtime

When to import uno

假装没事ソ 提交于 2020-01-04 13:22:48
问题 Using Ubuntu 12.04 and LibreOffice 3.5.7.2. I am trying to understand Python scripting in Libre Office. I've read quite a bit on the web and looked at and run some examples. I noticed that some examples import uno and some don't. They all run fine, but if I comment out import uno, that script stops working. Could someone explain to me when uno needs to be imported. Thanks, Jim 回答1: Try just importing uno. At the very most it will slow your program by 2 seconds. import uno ##JUST DO It! 回答2:

R Copy from Clipboard in Ubuntu Linux

我们两清 提交于 2020-01-04 12:17:29
问题 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) } #