libreoffice

why libreoffice sdk crash when simultaneosly and concurrently create documents through a webservice?

半世苍凉 提交于 2019-12-13 04:44:26
问题 i am running a webservice that replace text in a docx template and then convet it to pdf. i am using ubuntu 18.04 and glassfish server for its deployment when i made a single request for the service of converting everything is ok , but when i made a double request too fast like a double clicking issue or concurrent request, i got this exception: com.sun.star.lang.DisposedException at com.sun.star.lib.uno.environments.remote.JobQueue.removeJob(JobQueue.java:201) . . aused by: java.io

How do I override ODF Root RSID using the API

一世执手 提交于 2019-12-13 03:03:09
问题 I am generating ODT documents using the openoffice/libreoffice API, and I want the files to come out to be 100% identical every time (by MD5 comparison). At this point I can unzip the two files generated at different times and check all the files within the zip file and they all match 100%, except for the Settings.xml which has two unique differences (both RSID related). <config:config-item config:name="Rsid" config:type="int">1835643</config:config-item> and <config:config-item config:name=

Sorting cell range in a calc document with pyuno

好久不见. 提交于 2019-12-13 02:03:39
问题 With pyuno I open a LibreOffice calc document, I define a range of cells and I want to sort it. Here is the code: import os import uno # open a calc document # (it is assumed that LibreOffice is launched with the command line: # soffice -accept="socket,host=localhost,port=2002;urp") local = uno.getComponentContext() resolver = local.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", local) context = resolver.resolve("uno:socket,host=localhost,port=2002;urp

Issue with JODConverter and running LibreOffice in headless mode

我只是一个虾纸丫 提交于 2019-12-13 01:43:03
问题 I am using the following code to convert .doc to .pdf using JOD. File inputFile = new File("document.doc"); File outputFile = new File("document.pdf"); // connect to an OpenOffice.org instance running on port 8100 OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100); connection.connect(); // convert DocumentConverter converter = new OpenOfficeDocumentConverter(connection); converter.convert(inputFile, outputFile); // close the connection connection.disconnect(); But I have

Changing backgroundcolor of a table-cell based on its value

ぐ巨炮叔叔 提交于 2019-12-13 00:55:03
问题 I'm using this nice tool pod to generate ODT-Files in my django-application. Is there a way to change the backgroundcolor of a table-cell based on its value? 回答1: Sure, in LibreOffice its easily found on the menu. Format -> Conditional Formatting. 回答2: You could generate a tag for the color in your django application and then have a post process LibreOffic Writer macro going through the tags and change the background color of the cells accordingly. 来源: https://stackoverflow.com/questions

LibreOffice Basic get Elements from form

眉间皱痕 提交于 2019-12-12 22:36:01
问题 I'm trying to get value from textfield on the form. sub Test(oEv) oForm = oEv.Source.Model.Parent textBox = oForm.getByName("Description") MsgBox textBox.Text end sub There is an Exception: "Type: com.sun.star.container.NoSuchElementException" on the line "textBox = oForm.getByName". I have a text field with the name "Description" on the same form, where is the button I press to run this macro. What is wrong here? 回答1: Check that the name is the same case, not description . Also, use the Form

Can python read the value of a cell in a spreadsheet?

╄→гoц情女王★ 提交于 2019-12-12 14:23:04
问题 All, Can python read the value of a cell in a spreadsheet? From a mapping/GIS/analysis standpoint: the simplest example would be a script that ran a buffer (proximity) tool on a given shapefile (GIS dataset). For the buffer distance parameter, instead of just using a number like '1000' feet, the script would point to a value in a cell of a spreadsheet (libre or open office preferred). If there was then a way to trigger the script from the spreadsheet by way of a button, that would be the next

Row numbering selection auto-fill till the end [closed]

[亡魂溺海] 提交于 2019-12-12 11:05:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a table with thousands of lines. I want to number rows by adding 1 2 3 next to first rows, then to select these and drag till end to make a fill with increasing numbers. How to autofill till last row without dragging with a mouse for several minutes? 回答1: Do you know how to double-click the autofill

Importing HTML table into OO Calc as UTF8 without converting to entities

岁酱吖の 提交于 2019-12-12 08:14:30
问题 I have a problem when opening a HTML table in OpenOffice or LibreOffice if it contains UTF8 extended characters like ÅÄÖåäö. When opening the table into M$ Excel it works as intended but I can't make OO do the same thing. By converting all extended characters to its HTML entity eqivalent Å etc. it works but it would be nice to get the correct characters directly. Is there anyone who knows what I should do? The following content I have in a file called excelsample.xls and if I open that with

error in loop with for “python open document”

家住魔仙堡 提交于 2019-12-12 05:26:41
问题 I'm follow this tutorial appy.pod and I'm creating a list of dict more or less something like this: params['reports'] = [{'date': foo.date, 'name': foo.name} for foo in something] and in the libreoffice - writer i have a note with this do text for foo in reports and when I excecute the code I get this error Syntax error while parsing a note whose content is "[]". In a note, you may specify at most 2 lines: a pod statement and a "from" clause. A Pod statement has the form: do {element} [