How to get notification from printer when physical page/job is complete

I'd like to be able to get a notification from a network printer when it physically finishes printing a page (and/or the entire job). This is going to be used in an app I'm writing for print...

apply template in LibreOffice Writer to existing document

is there a way to apply a template to an existing document? It only seems to work when I create a completely new document, and i don't want to copy&paste everything.

error in loop with for "python open document"

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...

AcroForm values missing after flattening

I'm using LibreOffice 4.1.3.2 to produce a fillable PDF: Created a Writer document Set some text and test fields Exported to PDF Opening pdf file with Acrobar Reader shows a correct fillable...

How to insert different text with different format on each page in Libre Office Writer?

How can I add a different text to each header and footer of each page in LibreOffice Writer? If I edit the header of a page, the text automatically changes on the others. I want them to behave...

Add alternative text to a phrase in a document file

I use LibreOffice Writer and I want to insert an alternative text to a specific phrase in the document, how can I do it? Example if we have an image in the document we can make double left click...

how to create docx files with python

I am trying to take my data and put it in tables in either microsoft words or libreoffice writer. I need to be able to change the background of cells within the table and I need to be able to...

Open LibreOffice writer and load/close a document using C# CLI

I am writing a program for using LibreOffice CLI in C#. I wanna load LibreOffice Writer with some predefined saved file and then want to close the LibreOffice Writer. I am able to load Writer with...

Copy and paste data frame - from R! to Writer/Word

Suppose I have some analysis results in data frame/table. I wish to embed them in text document. In case of LaTeX, I can use miscFuncs package: library('miscFuncs') latextable(myDataFrame) and...

JabRef citation in LibreOffice with institutional author

I'm using JabRef as a reference manager and LibreOffice writer as document editor. I'm using the ooPluging to cite JabRef sources in LibreOffice, but I'm having troubles with sources with...

Libreoffice converting HTML to PDF on command line produces empty page

When I am using a html document ('SimplePage.html') with the following content <!DOCTYPE html> <html> <title>Page Title</title> <body> This is just a simple Hello World ...

ignore a .odt# file for a git repo

I cannot make git to ignore the next file (using a local .gitinore file) : .~lock.osc-kontrol2ms.odt# It's a lock file for the libreOffice Writer document used to make notes for the project, and...

replace (fix) fonts in LibreOffice Draw after importing PDF

I adapted BASIC macro to Draw but don't understand why it converted fonts only in first page. The code is: REM ***** BASIC *****...

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...

Install pdf2htmlEX on heroku

I used this Aptfile: fonts-liberation libreoffice-base-core libreoffice-calc libreoffice-writer libreoffice libpython2.7 pdf2htmlex poppler-utils And installation completed successfully. I even...

modify libreoffice writer document from python for auto reporting

I would like to generate automated reports from my python program. I was using pdf reportlab solution before, but my needs are evolving. I need the possibility to comment / apply modifications in...

LibreOffice API/UNO: How to horizontal right-align text in table cell in writer

I'm using C++ to control LibreOffice/OpenOffice from another application, but I guess you can help me if you know the java-bridge as well. So basically I want to load a document (works), set the...

How to prevent line breaks (general)

I'm writing a text on C++. But often the line breaks after the first "+", so I get C+ This is just an example. How can I prevent line breaking of arbitrary parts in my odt doc?

Add line in Writer (odt) document using odfpy

I am trying to insert an horizontal line in a LibreOffice Writer (odt) document using odfpy. (In Writer: Menu->Insert->Horizontal line) This is my attempt (adapting this example): from odf import...

Using regex in LibreOffice Writer to appending a string to the next line results in a failure or full replacement instead

I am attempting to format a series of test questions for implementation to an online course in LibreOffice Writer. The test question format was changed recently and I have to update all 500+...

Is there a method for page numbering by chapter in LibreOffice Writer?

Writing a user-manual that is written in chapters, each describing a different aspect of the functions. Some of those functions are ready and closed, some still in development or ready but not...

Headless LibreOffice very slow to export to PDF on Windows (6 times slow than on Linux)

I often need to export many (> 1000) .docx documents to PDF with LibreOffice. Here is a sample document: test.docx. The following code works but it's quite slow on Windows (3.3 seconds on average...

Copy and paste svg image to libreoffice writer using xclip

I am used to use xclip to copy/paste png files into libreoffice writer. The command I use is: xclip -selection clipboard -t "image/png" -i <path_to_file> Now, I want to copy/paste svg images, but...

Libreoffice API (UNO) : text and data from xTextField

How can I get xTextFields from .odt document properly? I tried something like that, but it doesn't work (Any returns a nullptr address): Reference <XTextFieldsSupplier> xTextFieldsSupplier...

How to convert pdf to docx in libreoffice 6.4?

I have libreoffice 6.4 installed in my ubuntu 18.04 container. The goals is to convert a pdf file to docx. I have already tried these commands : libreoffice --headless --convert-to docx:"Microsoft...

Is there a markup language underlying MS Word and Libre Office?

I'm curious about the backend for WYSIWYG editors (specifically librewriter and MS Word). I know that you can produce fancy and nicely typeset documents using LaTeX, TeX and HTML+CSS. I was...

Is there a sane way to produce Word or OpenOffice documents from light markup formats like Asciidoc or Markdown?

I am currently in the process of writing a thesis at university. Both the university and my assigned supervisor require the thesis to: be in MS Word document format, ie. doc or docx contain some...

xdotool key ignored by Firefox while working on other windows

I'm on Ubuntu 20, Firefox 84.0 (64-bit). I've been trying to use xbindkeys and xdotool to create custom keyboard shortcuts for special characters like '→' or '«' (in brief, I hate compose key...

LibreOffice convert-to pdf produces file could not be loaded error even if file has 777 permissions

I migrated a site for a client recently and have been having trouble with LibreOffice. One feature of the site takes a docx, makes changes to it, then copies it and converts it into a pdf for user...

Can you Print the wavy lines generated by Spell check in writer?

As per google group, this macro can be used to print mis-spelled words in MS office. https://groups.google.com/g/microsoft.public.word.spelling.grammar/c/OiFYPkLAbeU Is there similar option in...