openoffice.org

Create openoffice .odt document with Python

北城余情 提交于 2019-12-21 01:19:22
问题 How can I create an open office .odt file from Python? I'm looking at this http://wiki.openoffice.org/wiki/Python, but am confused. I've already got Python 2.7 so where do I go from here? The above link talks about Open Office shipping with Python. Have I already got it?? And do I even need OpenOffice? Isn't there just some template, some way that a document needs to look like so it will will recognized as odt? Would I need the actual editor? I'd like something like https://github.com

Merging two .odt files from code

无人久伴 提交于 2019-12-20 19:11:32
问题 How do you merge two .odt files? Doing that by hand, opening each file and copying the content would work, but is unfeasable. I have tried odttoolkit Simple API (simple-odf-0.8.1-incubating) to achieve that task, creating an empty TextDocument and merging everything into it: private File masterFile = new File(...); ... TextDocument t = TextDocument.newTextDocument(); t.save(masterFile); ... for(File f : filesToMerge){ joinOdt(f); } ... void joinOdt(File joinee){ TextDocument master =

Merging two .odt files from code

倖福魔咒の 提交于 2019-12-20 19:10:34
问题 How do you merge two .odt files? Doing that by hand, opening each file and copying the content would work, but is unfeasable. I have tried odttoolkit Simple API (simple-odf-0.8.1-incubating) to achieve that task, creating an empty TextDocument and merging everything into it: private File masterFile = new File(...); ... TextDocument t = TextDocument.newTextDocument(); t.save(masterFile); ... for(File f : filesToMerge){ joinOdt(f); } ... void joinOdt(File joinee){ TextDocument master =

Merging two .odt files from code

纵饮孤独 提交于 2019-12-20 19:10:05
问题 How do you merge two .odt files? Doing that by hand, opening each file and copying the content would work, but is unfeasable. I have tried odttoolkit Simple API (simple-odf-0.8.1-incubating) to achieve that task, creating an empty TextDocument and merging everything into it: private File masterFile = new File(...); ... TextDocument t = TextDocument.newTextDocument(); t.save(masterFile); ... for(File f : filesToMerge){ joinOdt(f); } ... void joinOdt(File joinee){ TextDocument master =

Programmatically extracting slides as images from a PowerPoint presentation (.PPT)

空扰寡人 提交于 2019-12-20 08:59:45
问题 Given a PowerPoint presentation in .ppt format, what is the best way to programmatically and using only open source software extract an image representation (in say .jpg or .png ) of each slide in the presentation? The application will run in a Linux server environment, so installing Microsoft Office or Keynote is not an option. The functionality that I want to achieve programmatically is similar to: Keynote's export functionality ( File > Export... > Pictures > JPEG ) PowerPoint's Save As

How To Format A Block of Code Within a Presentation? [closed]

大兔子大兔子 提交于 2019-12-20 08:17:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am preparing a presentation using Google Slides, though I can also work on the presentation within Open Office that will include code snippets. Is there any easy way to perform basic syntax highlighting on the code snippets with either Google Docs or Open Office Presenter? Edit: Since I believe that I can find

LibreOffice Command Line Conversion - No Output File?

我的未来我决定 提交于 2019-12-20 05:03:23
问题 I am using LibreOffice installed on my Linux box and I seem to be having a weird problem in that the conversion seems to be taking place, and there seem to be no errors, but there is no output file in the specified output directory. Here is an example of the command I am using: /opt/libreoffice3.6/program/soffice --headless --invisible --convert-to pdf /dir/file.pptx --outdir /dir And here is the result of that command: convert /dir/file.pptx -> /dir/file.pdf using impress_pdf_Export But the

OpenOffice Calc can not read a simple CSV file. Why?

ぐ巨炮叔叔 提交于 2019-12-20 04:53:20
问题 I have a Web site (PHP) that generates a CSV file (text/csv) with the following content: ID;E-Mail_User;Name;Applikation;Rolle;Auftragsdatum;Administrator 522;user@domain;WXDUILAS;ABCD;XYZ;2009-03-04 05:00:09;user@domain When I select OpenOffice to show the CSV file only an empty spread sheet is shown. No error is displayed. When I try to open the file with oocalc test.csv the same happens. I have tried different versions of OpenOffice. What is wrong with the file? How can I get an error

OpenOffice Calc can not read a simple CSV file. Why?

老子叫甜甜 提交于 2019-12-20 04:53:11
问题 I have a Web site (PHP) that generates a CSV file (text/csv) with the following content: ID;E-Mail_User;Name;Applikation;Rolle;Auftragsdatum;Administrator 522;user@domain;WXDUILAS;ABCD;XYZ;2009-03-04 05:00:09;user@domain When I select OpenOffice to show the CSV file only an empty spread sheet is shown. No error is displayed. When I try to open the file with oocalc test.csv the same happens. I have tried different versions of OpenOffice. What is wrong with the file? How can I get an error

create word doc file from linux command line

一曲冷凌霜 提交于 2019-12-20 04:26:05
问题 I have some HTML files that I need to distribute in MS Word doc format (don't ask!). I can manually open each in OpenOffice and then save as a doc file. But I have quite a few files so I want to automate this. Do you know a way? 回答1: Havn't tested but there is pyuno package to access OpenOffice API and following program show some ways to do like that. ooextract.py A command line tool, that extracts the text, html or pdf content from a StarWriter document and writes it to a different file or