915 questions
1
vote
1
answer
362
views
How to store hidden, persistent metadata in DOCX files that survives edits
I am looking for a way to add machine-readable metadata to DOCX reports I generate. The goal is to allow users to modify the document's styles and re-upload it to the system while preserving the ...
1
vote
2
answers
737
views
How to use LibreOffice UNO API in .NET 8 on Debian?
I am developing a .NET 8 cross-platform application on Debian, which needs to interact with LibreOffice via UNO API. What i'm trying to accomplish is to save an opened Libre Office tab.
Here is my ...
1
vote
0
answers
69
views
How to write text to currently opened Apache OpenOffice Writer document
Using c#, I am loading a new Writer document and writing a text into it.
(My version is Apache OpenOffice 4.1.4).
I have referred to below link and done some changes and was able to load a document ...
-1
votes
1
answer
38
views
Implementing a Custom “Whole Sheet Export” via UNO API to Preserve Hyperlinks in PDFs
When the “whole sheet export” option is enabled during the PDF export process in Calc,
the hyperlinks in the exported PDF do not preserve their original URLs and instead show local file paths.
...
0
votes
0
answers
54
views
Is there a way to automatically export OpenOffice/LibreOffice drawings to bitmaps, with options?
I have some drawings in multi-paged .ODG files. I would like to have a way to automatically export them to bitmaps, with a controlled set of export options.
I'd like the exported format to be PNG or ...
4
votes
2
answers
793
views
Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA
How to convert a Multi-Page Text file to PNG, for example:- I have a Text document of 5 pages and I want to convert that into PNG. By default, it's giving a PNG of only 1st page. How to get the PNG ...
0
votes
1
answer
555
views
Error While Loading Document using OpenOffice SDK in JAVA
I'm trying to Load a document using OpenOffice SDK in JAVA. I'm Using XComponentContext xContext = Bootstrap.bootstrap(), and trying to get the remote office component context of OpenOffice through ...
1
vote
0
answers
111
views
How to KEEP only first occurence data in Libre Office Calc (with two column filter)
I have a large database of car makes and models color auto code structured in these columns:
Make - Model - Description - Code
and about 14000 rows.
I need to have the database with only the first ...
0
votes
1
answer
190
views
Table containing the count of multiple columns?
I've got the following table:
Question 1
Question 2
Question 3
a
a
b
b
a
c
a
c
e
c
b
e
a
d
a
How do I create a pivot table (or something similar) containing the count of answers per question?
i.e. ...
0
votes
0
answers
427
views
Error trying to use LibreOffice COM library `com.sun.star.ServiceManager': Access denied
I am trying to use the libreOffice library using PHP.
When I run the code from the console it works fine, but when I run it via the browser it fails. The error is "Failed to create COM object `...
-1
votes
1
answer
1k
views
Code or command-line for converting ODG (open document graphic) to PNG, JPEG, etc? (Windows and/or macOS)
I've spent many hours searching for open-source code or utilities (but NOT the full LibreOffice suite) that would let me convert an ODG (Open Document Graphic) image to any standard format like PNG or ...
1
vote
1
answer
870
views
Connecting to LO from python IDE with PyUNO for debugging
I am trying to set up an comfortable environment to develop some python scripts for LibreOffice Calc.
Before I tried to edit .py files directly from "/home/user/.config/libreoffice/4/user/Scripts/...
0
votes
1
answer
272
views
Angular frontend Spring backend file download not working or corrupt
I have some files (.odt) stored in a mysql database which I try to download
Spring backend (not Spring boot):
Controller:
@RequestMapping(value = "/downloadRequest", method = RequestMethod....
0
votes
0
answers
90
views
How to sign a microsoft office or openOffice certificate with a p12 or pfx certificate
I want to be able to sign a Microsoft office or OpenOfiice document with with a digital certificate without using the Gui softwares.
I already signed PDF and XML (with xml-dsig). Some people say I can ...
0
votes
0
answers
82
views
How a can open programmaticly LibreOffice in modal mode in separate process
How a can open programmaticly LibreOffice in modal mode in separate process, like winword.exe /w?
under windows/linux
Didn't find anything...
0
votes
0
answers
800
views
In LibreOffice Calc, How To Access Raw HTML in a Cell?
I have a LibreOffice Calc spreadsheet that has a column with HTML formatting in it, including links. There is some data in the HTML that I need to preserve and extract. This would be easy to do if I ...
2
votes
0
answers
452
views
.net LibreOffice Handle is not initialized exception
Our team updated an existing winform application to .net 6. Since this update we cannot open files with open office anymore. The SDK cannot be initialized anymore.
the following code throws an ...
1
vote
0
answers
223
views
How do create with NodeJS Microsoft Office / Open Office / PDF / thumbnails?
Does exists any way to generate image thumbnails for Microsoft Office, Open Office, PDF's and another most frequently used files/documents?
Server side of my app is running on NodeJS.
Thanks a lot for ...
0
votes
1
answer
127
views
OpenOffice disable track changes via UNO (Java) interface
How can I disable track changes in OpenOffice Writer / LibreOffice Writer using the UNO Java API?
0
votes
1
answer
366
views
Styling cells with macro
I'm new with OO Calc macros. With this code I can style cells on F13:F16 range
REM ***** BASIC *****
Option Explicit
Sub Main
oDoc = ThisComponent
osheets = odoc.getSheets()
osheet = osheets....
0
votes
1
answer
377
views
Placing cursor in the document for a given position using PyUNO
I am having Libreoffice7 installed with custom python 3.8.6 in Windows.
I want to use PyUNO to navigate the view cursor to a specific position based on the X, Y coordinates(of instance com.sun.star....
0
votes
0
answers
26
views
How extract word between tag with open office library?
How can I extract word in binary file or .doc file with open office library in Java?
I can't find good documentation or example of how to do it.
0
votes
1
answer
241
views
How to use Imports System.Xml in Open Office (Basic)?
Whenever I place Imports System.Xml above the rest of the code I get an error:
BASIC syntax error. Expected: Sub.
And when I place it inside any of the Subs I get another error:
BASIC syntax error. ...
0
votes
0
answers
116
views
LibreOffice: The program crashes when we call the FrameLoader.loadComponentFromURL method
We are usingthe UNO library to edit template in LibreOffice.
The existing implementation was developed using LibreOffice 6.4.4. With this version this worked without any problems. Likewise with ...
0
votes
1
answer
706
views
LibreOffice Tree with columns
I am writing an extension for LibreOffifce.
A tree with columns on my sidebar is needed. (example - https://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-example.html)
I found information about ...
0
votes
1
answer
229
views
Sorting in OpenOffice Calc via Delphi
I've spent several hours trying to sort data in OpenOffice Calc in Delphi. I tried to follow the examples in basic (from "OpenOffice.org Macros Explained"*) or C#, but still no result. Data ...
1
vote
1
answer
143
views
Read data in OpenOffice xlsx file then convert to a list using python
Good day. I am using pandas to read a column of data in a xlsx file. I only have 1 column and it is filled with ages of people. This is my code:
import math
import pandas as pd
import openpyxl
df = ...
0
votes
1
answer
221
views
How to clone a TextTable and paste N cloned TextTable below the original TextTable using open office uno API
I have a XTextTable instance. How can I 1) clone the text table (both content and format) into a new XTextTable instance and 2) insert the new instance below the text table using insertTextContent ...
1
vote
1
answer
612
views
Basic Wrapper for LibreOffice Calc Python UDF
How is the Basic wrapper call formed to run a LibreOffice Calc Python User Defined Function using non-integer spreadsheet ranges?
I'm not clear on how to declare the function properly for the values ...
1
vote
1
answer
772
views
Libreoffice Calc Basic How to append 2 decimal places by code
Declaration
Dim currDoc As Object
Dim currSheet As Object
Dim cell As Object
currDoc = ThisComponent
currSheet = currDoc.sheets(0)
Logic
cell.Formula = cDbl(cell.Value)
Desired Output
100,00
0
votes
1
answer
128
views
go to end of word is not always followed
I have this macro that works as expected. I type any junk word for e.g.
testd
on a new line, place the cursor at the beginning of the word and run the macro. The word is added to standard dic. I can ...
0
votes
1
answer
124
views
OpenOffice Calc sum of number less then a value
I have a range of values F1:F144 and i want to make sum of values less than 50.
I tried =SUM(F1:F144,'<'50) but it doesn't work (i don't want to sort them).
-1
votes
1
answer
65
views
Regular Expression 65 CPL and No Word Breaks
I'm trying to perfect a regular expression to take paragraphs of text and arrange them with a 65 character per line limit, and specifically not to split any words.
I'm using Apache OpenOffice to Find ...
0
votes
1
answer
100
views
How to export a multilayer OpenOffice drawing to a multilayer PDF file?
I made an OpenOffice drawing with multiple layers and would like to export this to a multilayer pdf file.
Can I do this directly or do I need auxiliary software ?
(I use Openoffice 4.1.7 on a Win10 PC)...
0
votes
1
answer
41
views
Cannot retrieve container for XShape in LibreOffice
I'm struggling with some code using LibreOffice 7.1.0 on Windows 10 to append images from a folder into separate slides in Impress. I've been looking here and OpenOffice documentation. This call ...
0
votes
1
answer
389
views
How to use PyOD with OpenOffice?
PyOD is a super simple python library (https://github.com/mirkonasato/pyodconverter).
It has one command usage
> "C:\Program Files (x86)\OpenOffice 4\program\python-core-2.7.18" ...
1
vote
2
answers
795
views
How to trigger AutoFit / SetOptimalHeight in LibreOffice Calc programmatically?
I'm using unoconv to convert XLSX => PDF. I need LibreOffice to wrap text and increase row heights dynamically depending on the contents of the XLSX file. Is there a way to do this programmatically,...
0
votes
0
answers
943
views
Is it possible to write macros into the excel using NPOI
I am creating an excel using NPOI. In this I want to call an exe(notepad++) when the user clicks a cell. As far as I know this behavior can be achieved only through macros. So is there any possibility ...
1
vote
2
answers
2k
views
org.artofsolving.jodconverter.office.OfficeManager is not initializing in wicket
I have upgraded my application from Wicket 1.x to 8.x version.
I am facing an issue to convert Excel file into PDF format.
Using this below dependencies:
<dependency>
<groupId>net.sf....
1
vote
1
answer
1k
views
Sort uppercase cells separately from lowercase ones
Sort uppercase cells separately from lowercase ones
Hi!
I would like to resolve the following:
I want to group cells with mixed content, numbers, lowercase and uppercase words into separate columns so ...
1
vote
1
answer
1k
views
PHP convert docx file to pdf
I am using PHP as a backend end, I generate a Docx file on the backend and I want to send it to the frontend to make the user print it directly without downloading it.
So I wanted to convert the Docx ...
0
votes
1
answer
286
views
Looking for OpenOffice base SQL reference
(I posted this elsewhere, but this may be a better forum.)
I recently bought a new laptop and am trying to avoid MS Office. I've loaded OpenOffice 4.1.8, but am having issues writing query statements ...
0
votes
1
answer
266
views
python to auto fill in import text in open office
(character set ,seperator options, and Fields in Apache Open Office)
The original file I have is a csv file. I want to change the character set ,seperator options, and Fields using python code and ...
0
votes
1
answer
525
views
Python to open and save csv file in Apache OpenOffice
I want to know is there any solution to
1)use python to launch apache open office
2)open an csv file
3)Auto fill in Text Import
4)then save it into xls file.
import subprocess
subprocess.Popen('C:\...
0
votes
0
answers
694
views
Can the XML-based Document files be rendered in the web browser
Open Office Document types (like .odt,.ods,...) are based on an extended version of XML.
XML documents with XSL documents can be easily used to make web browser renderable web pages.
I created an Open ...
0
votes
0
answers
814
views
How to Run Openoffice in a server and perform conversion from my local system
I have a requirement where I need to use openoffice in a standalone server and use a Java program for Document conversion.
Right now, I have a setup where I have started openoffice in my linux ...
0
votes
1
answer
165
views
How can a formula be used in scalc (Apache OpenOffice) to count cells with content, while the count should stop at the first empty cell?
Here (https://www.howtoexcel.org/formulas/how-to-find-the-position-of-the-first-non-blank-cell-in-a-range/) is a source for Excel where the following formula is described:
{=MATCH(FALSE,ISBLANK(B3:B9),...
1
vote
1
answer
93
views
LibreOffice XParagraphCursor stuck when blank line
I have a code that was working perfectly fine until LibreOffice 5. But in LibreOffice 6 (both 32 and 64 bits) it stopped working.
public String getNextSentenceOO() {
while (moreParagraphsOO) {
...
0
votes
1
answer
331
views
OpenOffice Basic macro vs openoffice API
I am planning to write openoffice macros using openoffice basic language. I am struggling to find the objects and methods related to openoffice documents. I googled and found some example codes and ...
0
votes
1
answer
147
views
End Row In Worksheet using ExcelPackage class library
I have a spreadsheet with many worksheets in it. Each worksheet has a few column headers on the first row. A user can add rows to these worksheets, and these rows get processed in my VB app by using ...