Questions tagged [libreoffice-writer]

135 questions
1
vote
1 answer

docx to pdf conversion with libreoffice

I downloaded libreoffice to try to convert docx to pdf. Having a hard time getting it to run. I've looked around on forums and it seems the command is soffice --convert-to pdf filename.docx or libreoffice --convert-to: pdf:writer_pdf_Export…
Matt W.
  • 3,692
  • 2
  • 23
  • 46
1
vote
0 answers

Images overlapping when added

I have a code that add a image, but it add the second image at the top of the first image.Its overlaps the second on top of first. PoC_officer.py: import os import uno import time import wget from com.sun.star.text.ControlCharacter import…
DevBush
  • 383
  • 1
  • 3
  • 10
1
vote
1 answer

LibreOffice/OOo UNO - where to get API reference?

I am trying to write a Writer macro using LibreOffice Basic. First I tried recording a macro that applies a style to a page. It generated code like this: document = ThisComponent.CurrentController.Frame dispatcher =…
JustAC0der
  • 2,871
  • 3
  • 32
  • 35
1
vote
1 answer

How to force single/orphan letters to next line?

I want to automatically change: blah blah blah b blah blah blah into: blah blah blah b blah blah blah in the whole document and keep it like that. I could insert a hard space before each and every single/orphan letter at the end of the line, but…
spam
  • 1,853
  • 2
  • 13
  • 33
1
vote
1 answer

Mail merge with Libre Office using .net

I have following code block which is working perfectly for OpenOffice SDK to automate Mail merge functionality. Public Function runQueryOnDataSource(ByVal nameOfdDtaource As String, ByVal query As String) As Boolean strLog = strLog + vbCrLf…
Mayur Bari
  • 23
  • 8
1
vote
1 answer

Run Python code inside LibreOffice

I'm currently trying to get off from MATLAB and replace it by Python. A functionality I loved always in MATLAB are the (now deprecated) notebooks. Basically, this allows one to run MATLAB code inside a Microsoft Word file and get the output. It's…
P. Egli
  • 167
  • 1
  • 4
1
vote
1 answer

Hat/circumflex above letter in LibreOffice Writer

I would like to have arbitrary letters in normal text (not formula mode) with a hat/circumflex above it. For instance, it should look like this: Ĝ. How can I achieve this in LibreOffice Writer?
Ethunxxx
  • 1,229
  • 4
  • 16
  • 34
1
vote
2 answers

How to read contents of a LibreOffice writer annotation from a python macro

LibreOffice writer allows the user to insert annotations(notes/comments) within the text. My issue is I am unable to find a method to access the contents of a line specific annotation. The following python code looks for selected/highlighted…
Rolf of Saxony
  • 21,661
  • 5
  • 39
  • 60
1
vote
1 answer

Import Microsoft Word AutoText to LibreOffice

Is it possible to import the Microsoft Word AutoText file (apparently called "building blocks.dotm") to LibreOffice? If yes, how? Background information: AutoText seems to be part of Building Blocks; OpenOffice seems to already have tackled the…
pdeli
  • 436
  • 3
  • 13
1
vote
1 answer

Areas of display in LibreOffice not being refreshed

I was experiencing some problems while editing the layout of pivot tables [ 1 ] with LO 5.1.2.2 (the default that comes with Ubuntu 16.04) and so decided to reinstall it. The problem is now gone. However I'm experiencing a weird one now with the…
1
vote
2 answers

Libreoffice Writer: How to set different colors to each letter?

I'm writing some reading material for a dislexic kid. To ease things for him, I want to use different colors in each letter (i.e. all "a" in red, all "e" in blue, etc). I'm doing it manually, and it is a pain. Tried to use search/replace, but it…
1
vote
4 answers

Can't run Python macro in LibreOffice

I'm trying to learn to write macros for LibreOffice in Python. I made simple macro, put in into ~/.config/libreoffice/4/user/Scripts/python/ and found it in Tools/Macros/Organize Macros/Python.../My Macros. So far all works as expected, macro is…
lsrom
  • 608
  • 8
  • 22
0
votes
1 answer

Is there a way to call self-defined macro functions from within writer document?

I'd like to call sub and function from libre office basic from document text, such as [call sub initNumbering()] text - blah Some caption defined as "Card Nr."+[call function getCardNr()] text - blah [call sub nextCard()] But I didn't find a way to…
dantritter
  • 11
  • 3
0
votes
0 answers

msoffice and libreoffice do not display the height of some fonts properly

I wrote 1, 2, 3... a whole page in msword. When I load this from libreoffice, the page doesn't fill up. At first, I thought it was a problem with line spacing and spacing above/below paragraphs, but the settings were the same. So, looking more…
0
votes
0 answers

Libreoffice Headless PPTx File convert to PDF producing background color to the text in the output

I am Using Libreoffice V7.3.7.2 and headless command to convert pptx file using --convert-to pdf command in the Ubuntu system, the converted PDF is getting added with the background color to the heading text. As well as all my gdrive files text is…
1 2 3
8 9