151 questions
1
vote
1
answer
57
views
Python macro to enumerate only selected formulas in a LibreOffice Writer doc
I've written this LibreOffice Python macro, that prints (in ASPO terminal) the inner code of each "formula" (i.e. LibreOffice Math element included in LibreOffice Writer content) of my ...
-2
votes
1
answer
69
views
How to force block of text containing newlines not to straddle a page break [closed]
Version: 25.8.2.2 (X86_64) / LibreOffice Community
Build ID: 580(Build:2)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded
In a ...
1
vote
0
answers
97
views
Editing fields in LibreOffice Writer with Python marco using scriptforge library
The goal is to write a Python macro that creates a new Writer document from a form letter template and fills in editable fields to automate repetitive correspondence generation. My problem is that I ...
2
votes
0
answers
84
views
Insert image from in-memory binary to ODT file LibreOffice
I want to replace a string in my ODT file with an image, but this image is from binary data, not a file. I don't want to write to temp file and load it, I want to purely do so in memory.
I have this ...
2
votes
0
answers
171
views
How do I write to a VB6 byte array instead of to a filepath with UNO / LibreWriter API?
I use the following code to save my LibreWriter document to disk. It works fine:
Public Sub SaveToPath(ByRef oSM As Object, ByRef oDoc As Object, ByVal uFilepath As String)
Dim Args(0 To 1) As ...
1
vote
0
answers
30
views
Is there a way to lengthen an arrow without stretching it?
Ran across this problem while writing a nuclear decay formula in LibreOffice Writer. Using widevec{~~~~~~~~~} makes the arrow appear stretched. Is there an alternative to widevec, to make an arrow ...
0
votes
0
answers
55
views
Table of Contents of List of Figures and Tables are not clickable in PDF while converting docx to pdf using libreoffice writer
I am using pythn-docx(https://github.com/python-openxml/python-docx) to generate a docx file and then converting this docx file into PDF format using unoconv (https://github.com/unoconv/unoconv), ...
0
votes
0
answers
47
views
Macro in Basic for LibreOfficeWriter: make a textframe for each bookmark
I have a Writer document, that has bookmarks (It's a theater play, the bookmarks are the number of each verse).
I'd like to make each bookmarks visible, I am thinking about creating a textFrame for ...
0
votes
1
answer
141
views
Create a PDF/UA compliant PDF from an ODT with LibreOffice & Python UNO
Please consider the following example:
import uno
def create_pdf(file_url):
local_context = uno.getComponentContext()
resolver = local_context.ServiceManager.createInstanceWithContext(
...
0
votes
1
answer
207
views
How can I create a Lua filter that changes italic & bold markdown to Emphasis & Strong Emphasis styles with pandoc for LibreOffice Writer ODT file?
I have input.md:
---
title: My example document
---
## Overview
*I am italic*
**I am bold**
If I run:
pandoc input.md -o output.odt
I get an odt file with the expected formatting. However, in ...
0
votes
2
answers
204
views
Removing all but the first letter of every word using regex in LibreOffice Writer [duplicate]
I have found a couple posts around the internet and on here on how to remove all but the first letter of every word in a paragraph (or the whole text) using regex and Microsoft Word, but nothing has ...
-1
votes
1
answer
75
views
prevent blank lines from being numbered [closed]
I have a long list of items that I would like to be able to number without spending an hour numbering each piece by hand, and without every blank line also having a number.
Is there a way to do that?
1
vote
0
answers
114
views
LibreOffice Writer doesn't import Base query fields containing LIST()
I have a query in LibreOffice Base (Firebird) which uses the LIST() function. It works perfectly fine, but when creating a Writer document with database fields utilizing this particular query, it ...
0
votes
0
answers
57
views
Using userform with checbox in Libre write
Good day. I would like to inquire if it is possible to link a userform within LibreOffice Writer to call texts or images using checkboxes. These checkboxes should be linked to a button called "...
0
votes
0
answers
171
views
LibreOffice. Getting OutOfMemoryException while execute Conversion to PDF not instantly, but after long time of work
We have service on .Net6, that convert documents from Docx to PDF format.
Service has been deployed on Linux container (k8s) and have LibreOffice binary within
LibreOffice has been installed inside ...