libreoffice

LibreOffice Command Line Conversion - No Output File?

我的未来我决定 提交于 2019-12-20 05:03:23
问题 I am using LibreOffice installed on my Linux box and I seem to be having a weird problem in that the conversion seems to be taking place, and there seem to be no errors, but there is no output file in the specified output directory. Here is an example of the command I am using: /opt/libreoffice3.6/program/soffice --headless --invisible --convert-to pdf /dir/file.pptx --outdir /dir And here is the result of that command: convert /dir/file.pptx -> /dir/file.pdf using impress_pdf_Export But the

Modifying table entries from LibreOffice Base, possible?

有些话、适合烂在心里 提交于 2019-12-20 04:37:26
问题 I've successfully connected LibreOffice Base with MySQL data base server. I've tested if I modify my table from host (free hosting service on internet) then the changes are reflected when refreshing the table object in LO Base. But my question is, can I modify DB table directly from LO Base? I guess that it's possible using sql queries from LO Base, but how? Please give me some insights or tutorials. Thanks. 回答1: The normal way to alter a table: Tools -> SQL Enter an ALTER TABLE command and

Error calling LibreOffice from Python

非 Y 不嫁゛ 提交于 2019-12-20 02:28:15
问题 Calling LibreOffice to convert a document to text... This works fine from the linux command line: soffice --headless --convert-to txt:"Text" document_to_convert.doc But I get an error when I try to run the same command from Python: subprocess.call(['soffice', '--headless', '--convert-to', 'txt:"Text"', 'document_to_convert.doc']) Error: Please reverify input parameters... How do I get the command to run from Python? 回答1: This is the code you should use: subprocess.call(['soffice', '--headless

How to use LibreOffice functions into Basic?

て烟熏妆下的殇ゞ 提交于 2019-12-20 02:26:07
问题 I've asked here about the good way to do so. Now I'm trying the following code found here, and get some unexpected errors. I suppose I'm not using it the correct way. Any idea ? Sub Main Dim aResult Dim aFunc Dim oRange aFunc = GetProcessServiceManager().createInstance("com.sun.star.sheet.FunctionAccess") aResult = aFunc.callFunction("SUM", Array(1, 2, 3)) ' ---- Works OK Print aResult aResult = aFunc.callFunction("MDETERM", Array(2, 5, 8)) ' ---- IllegalArgumentException Print aResult oRange

LibreOffice Calc: Access a user selected range in a macro

半世苍凉 提交于 2019-12-19 10:18:32
问题 I'm looking to convert a MS Excel Spreadsheet into a LibreOffice Calc Spreadsheet. The Excel file contains a VBA Macro that iterates over a range of cells selected by the user, the Visual Basic code simply looking like this: For Each Value In Selection ' Manipulate Value Next Value Where Selection contains the cells in the worksheet manually selected by the user. So, my question is: how can I reproduce this, accesing a user selected range of cells, in Libre Basic? 回答1: If you want to use the

How do I make vba code compatible with libre office

无人久伴 提交于 2019-12-18 14:55:42
问题 I have recently migrated to pclinuxos from windows and seem to like it. The only problem I am facing is that libreoffice, the default spreadsheet package is not compatible with excel macros. Below is the vba code I have: Option VBASupport Sub DeleteToLeft() Selection.SpecialCells(xlBlanks).Delete shift:=xlToLeft End Sub Function SinceLastWash() Application.Volatile WashCount = 0 WearCount = 0 CurrentRow = Application.ThisCell.Row For i = 3 To 35 If Range(Cells(CurrentRow, i), Cells(CurrentRow

How to convert pptx files to jpg or png (for each slide) on linux?

只谈情不闲聊 提交于 2019-12-17 22:21:58
问题 I want to convert a powerpoint presentation to multiple images. I already installed LibreOffice on my server and converting docx to pdf is no problem. pptx to pdf conversion does not work. I used following command line: libreoffice --headless --convert-to pdf filename.pptx Is there es way to convert pptx to pngs immediately or do I have to convert it to pdf first and then use ghostscript or something? And what about the quality settings? Is there a way to choose the resolution of the

Libreoffice convert-to not working

有些话、适合烂在心里 提交于 2019-12-17 19:12:53
问题 I'm trying to convert documents from html,txt to pdf,odt and vice versa.. But only odt to pdf seems to work.. No other file formats are converted Here are my commands libreoffice --headless --convert-to pdf test.html [Not working] libreoffice --headless --convert-to odt test.html [Not working] libreoffice --headless --convert-to pdf test.docx [Not working] libreoffice --headless --convert-to pdf test.odt [Working] 回答1: This is a known issue in LibreOffice that was fixed in version 5.3.0.

How to prevent kaspersky to destroy my downloaded documents?

时光毁灭记忆、已成空白 提交于 2019-12-14 03:36:38
问题 Following up on this previous question, I have been contracted to create a tool to generate odt files in a flask website. When downloaded on particular machines with kaspersky AV, the files are missing bytes, rendering them corrupted and unusable. Disabling kaspersky of course allows the safe download and use of the files. Using another AV such as AVG doesn't cause the problem. I imagine kaspersky considers them as a threat, but I know them no to be since I am the one creating them from

Pyuno indexing issue that I would like an explanation for

喜你入骨 提交于 2019-12-13 06:05:24
问题 The following python libreoffice Uno macro works but only with the try..except statement. The macro allows you to select text in a writer document and send it to a search engine in your default browser. The issue, is that if you select a single piece of text, oSelected.getByIndex(0) is populated but if you select multiple pieces of text oSelected.getByIndex(0) is not populated. In this case the data starts at oSelected.getByIndex(1) and oSelected.getByIndex(0) is left blank. I have no idea