Questions tagged [odt]

.ODT, the word processing file format of OpenDocument, an open standard for electronic documents

217 questions
1
vote
0 answers

How can I find a replace a string in an .odt file in Python and output it to another .odt file?

Let's say I have an .odt file called "myfile.odt" in a specific directory (that's not the current working directory) and I want to replace "astring" by "anewstring", then export the modified file into a new .odt file in the current directory. How…
Michael Gauthier
  • 135
  • 1
  • 10
1
vote
1 answer

Problem when generating an odt with opentbs, values of the same key displayed on the same row and not in column

I'am using a library called OpenTbs to create an odt with PHP, I use it because dynamically generates columns and rows. I know how to create the rows and the columns, what I don't know is how to organize them. let me add an example: So first I will…
haruk1515
  • 358
  • 2
  • 10
1
vote
0 answers

VBScript created by Indesign Extended Script, does not execute part of the code - WScript.Shell run

I have a VBScript that is created by Indesign JSX (Extended Script). It runs a bash command (DOS) to convert an ODT to PDF. However, via Indesign this part (shell.Run) does not work. I put two MsgBox, one before and one after and both run. Only the…
1
vote
0 answers

Transform .docx document generated with PhpOffice\PhpWord\TemplateProcessor to .odt format

We generate documents using PhpOffice\PhpWord\TemplateProcessor's templates. Now client wants to change format to .odt. How can we do that without rewriting the whole function, or at least using a similar template approach (we create a word with…
fombo
  • 103
  • 1
  • 7
1
vote
1 answer

XDocReport: Issue by filling tables with Freemarker in ODT-file

I tried to rebuild the sample from the XDocReport documentation, but when i try to create tables or fill them. It always fails due to the follwing error. I cannot figure out what the issue is... I have updated all the dependencies and tried…
dwori
  • 33
  • 1
  • 5
1
vote
1 answer

How to save base64 images in ODT opendocument/ODT files?

I am trying to create an ODT file from xml. I have been trying to add an image using , it is a base64 image. After trying to do as it is told in documentation, the image is not displayed in text editors (Word and…
1
vote
0 answers

How to use version odfdom-java 0.10.0?

I've been studying ODF Toolkit to generate .odt files. This example Creating Text Documents Using ODFDOM runs when I use 0.8.6 version, but fails when I change to the newer version 0.10.0 (or even the 0.9.0). Does anybody there know a site or…
1
vote
0 answers

What's the best way to convert a .doc or .docx document to .odt using Python?

I've tried the following. It involves the use of the convertapi library. import convertapi import os …
Victor Simon
  • 75
  • 3
  • 10
1
vote
1 answer

get specific page of .odt document using java (odftoolkit)

OdfDocument odfDocument = OdfDocument.loadDocument(in); int pages = odfDocument.getOfficeMetadata().getDocumentStatistic().getPageCount(); I am getting the total pages, but can't find a solution to get specific page of .odt document. Can you…
1
vote
0 answers

Dynamic color according to the value in carbone.io

Does anyone have any idea about how to give color according to value passed in the template in carbone.io?
yednap
  • 11
  • 1
  • 4
1
vote
1 answer

How to convert Org mode file to ODT using a template and Pandoc?

I have a file plan.org with following contents: * Hello! This is a test. I want to convert it to LibreOffice (ODT) format using Pandoc so that it is formatted according to a template draft.ott or draft-template.odt both of which are available…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
1
vote
1 answer

How to programmatically open and modify ODT file from Calc Macro

I am writing a Macro programm in a LibreOffice Calc spreadsheet. This macro should do the following (amongst other things): open an existing ODT text document as a template search and replace some strings with new values save a copy of this as a…
martin_wun
  • 1,599
  • 1
  • 15
  • 33
1
vote
0 answers

How can I embed an image in a .pod file to have it render in .odt?

I have a program called multipandoc which takes as input a plain-text file in Perl's Plain Old Documentation (.pod) format and converts it simultaneously into .txt, .html, .pdf and .odt formats. It does so by use of the Pod::Pandoc module from…
James E Keenan
  • 281
  • 2
  • 10
1
vote
2 answers

Use odt2txt for Diff on Gitweb

I followed the instructions here and I cannot get them to work. I am using Git and Gitweb 1.7.5 on shared hosting, custom compiled and deployed using GNU Stow but basically following this howto on Dreamhost (just forked, no modifications made to…
songei2f
  • 649
  • 4
  • 10
  • 22
1
vote
1 answer

XSL change structure of ODT XML file

I am trying to convert an fodt file into a different structure using XSLT. I have the following xml (extracted from an fodt file)