Questions tagged [odf]

The Open Document Format for Office Applications, also known as OpenDocument.

The Open Document Format for Office Applications (ODF), also known as OpenDocument (OD), is an XML-based file format for spreadsheets, charts, presentations and word processing documents. It was developed with the aim of providing a universal document format that could be used with any office software suite.

111 questions
1
vote
1 answer

How do you parse the contents of a .odt file into a string in Java?

Preferable using the ODFDOM API. I would like to have the entire file's contents in a string, if possible. If not, how would you search the file for a specific substring? Thanks in advance.
user1576720
  • 105
  • 2
  • 9
1
vote
1 answer

Converting my python script from lxml to xml.etree

I am trying to convert my script (https://github.com/fletchermoore/n2c2) to use the default package xml.etree instead of lxml. This was an oversight on my part, but now I am realizing it would be impossible to get my target audience to set up lxml…
Fletcher Moore
  • 13,558
  • 11
  • 40
  • 58
1
vote
1 answer

Is there any ready-to-use xslt file to transform ODF content xml to plain text?

I tried googling, but couldn't find any xslt file to transform ODF content xml to plain text. Maybe somebody knows if it exists? Update: The stylesheet I am searching for is intended to be used primarily with ODT content.xml. Here's example input:…
Pupkov-Zadnij
  • 1,342
  • 2
  • 11
  • 21
1
vote
1 answer

How can I group siblings in a flat XML

I have the following part of an XML (It's ODF) Heading 1 Paragraph 1
Sandro
  • 2,998
  • 2
  • 25
  • 51
1
vote
1 answer

Spreadsheet Mark up Language

Is there a complete reference or documentation for Spreadsheet Markup Language? Which was used to create files in MS-Excel, Openoffice Calc etc, similar to XML?
ss_mj
  • 167
  • 1
  • 15
0
votes
1 answer

Centering text in odt files

I'm using odt file as a template for my transcripts and I'm using php to insert the transcript in the odt file which then outputs a correctly formated odt file but there is some text that I want to center horizontally for which I've written this…
Tarun
  • 37
  • 7
0
votes
0 answers

How set specific font in table cells using ODF Toolkit?

how can I change the text font of my OdfTable's cells? I'm using ODF Toolkit library and I only found this resource online: https://odftoolkit.org/simple/document/cookbook/Style%20Handling.html which DOESN'T work since i don't receive a table but a…
Unearthly
  • 121
  • 6
0
votes
2 answers

How to install and set up the ODF-DOM API

I am having troubles with the installation and set-up if the odf-toolkit. I tried to follow this instruction but don't understand how to set up the dependencies since some of the instruction-links from the readme-files are gone. Tips or instructions…
HeapUnderStop
  • 378
  • 1
  • 9
0
votes
1 answer

Set anchortype="paragraph" for image using odf.text

I want to change https://github.com/turulomio/pdf2odt so that images are 21cm wide (that was easy) and so that images are anchored to paragraph instead of as-char, so that the image goes all the way to the edge of the page. The ODT file contains: …
Ole Tange
  • 31,768
  • 5
  • 86
  • 104
0
votes
0 answers

How to read an *.xls file in Octave running on Linux Mint

OS: Linux Mint 20.2 Cinnamon Octave: GNU Octave, version 7.1.0 I want to read an *.xls file in Octave running on Linux MINT. However, when I run the code I get the following message: `error: 'xlsread' undefined near line 41, column 32 Functions for…
user18410866
  • 33
  • 1
  • 5
0
votes
0 answers

Excel does not accept sheetProtection in generated file

Trying to convert ods file with worksheet protection to xlsx. sheetProtection element generated is:
0
votes
1 answer

Python Pandas is removing newlines when importing an ODS file and I want to keep them

Python 3.8.10 Pandas 1.4.1 Hi everyone, I have a spread sheet in ods(odf) format. I am importing this data using pandas and it seems to be removing all newline characters but I want to keep them. This test script replicates the issue: #!/usr/bin/env…
Obsnold
  • 3
  • 3
0
votes
0 answers

how to extract the titles of a document .odt in Libreoffice - Python

I have a document in the .odt file, I just want to extract the titles of this document : in other words , I want to extract the "sentenses " or in others words "the "line" which are in bold in this documentdocument.odt : my code : from…
dkk
  • 171
  • 3
  • 11
0
votes
1 answer

Which regex condition could I use in to capture a math formula with units in R?

I am looking at codes in odf formulas that look a bit like this: {500mgl} over {4.05grams} I want to use a regex with gsub in R to enclose in brackets all of the elements with the pattern ([0-9]+)([A-Za-z]+) to avoid some units not displaying in…
GEX_HEX_420
  • 105
  • 6
0
votes
1 answer

How to update Page header using python odfdo module?

I am a complete beginner at python language. For a project I am writing a python script to update a template Open Document File using odfdo module. I am having a hard time with understanding the concept of updating page header. I have looked into…
Rojin
  • 1