openoffice.org

create word doc file from linux command line

喜欢而已 提交于 2019-12-02 03:25:06
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? 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 (optionally) prints it to stdout (grep your office documents). Abiword can convert files from the command

OpenOffice convert doc to pdf with JAVA

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 14:11:56
I know its have multiple question about it. But I've already read tons of it and it still doesnt work. I have installed OpenOffice to my comp : https://www.openoffice.org/download/index.html I have also tried this solution, doesnt work : connection failed while connecting to OpenOffice .org If I want to run my code i get the following error: Exception in thread "main" java.net.ConnectException: connection failed: socket,host=localhost,port=8100,tcpNoDelay=1: java.net.ConnectException: Connection refused: connect at com.artofsolving.jodconverter.openoffice.connection

Fatal error running an SWT application from OpenOffice

依然范特西╮ 提交于 2019-12-01 13:11:00
I have an OpenOffice Java addon application. I'm calling SWT from an XActionListener . Loading of SWT is done dynamically using a special class loader. The SWT window displays well, but when I hit the close button of an SWT window I get an error. I'm attaching the error file generated by this error. What is the meaning of this error? My SWT code final Display display = Display.getDefault(); final Shell shell = new Shell(); shell.setLayout(new FillLayout(SWT.VERTICAL)); shell.setSize(500, 375); shell.setText("SWT Application"); final Browser browser = new Browser(shell, SWT.NONE); browser

OpenOffice convert doc to pdf with JAVA

霸气de小男生 提交于 2019-12-01 13:02:45
问题 I know its have multiple question about it. But I've already read tons of it and it still doesnt work. I have installed OpenOffice to my comp : https://www.openoffice.org/download/index.html I have also tried this solution, doesnt work : connection failed while connecting to OpenOffice .org If I want to run my code i get the following error: Exception in thread "main" java.net.ConnectException: connection failed: socket,host=localhost,port=8100,tcpNoDelay=1: java.net.ConnectException:

What dummy X server should I use with openoffice on debian?

一曲冷凌霜 提交于 2019-12-01 08:41:15
I need to run openoffice in batch mode to turn .doc files into pdf, but openoffice won't start because it needs an X server. My linux box doesn't have one. Is there some dummy blackhole X server around I can use? I'm using debian etch. You could maybe try xvfb In the X Window System, Xvfb or X virtual framebuffer is an X11 server that performs all graphical operations in memory, not showing any screen output. From the point of view of the client, it acts exactly like any other server, serving requests and sending events and errors as appropriate. However, no output is shown. This virtual

What dummy X server should I use with openoffice on debian?

[亡魂溺海] 提交于 2019-12-01 05:37:12
问题 I need to run openoffice in batch mode to turn .doc files into pdf, but openoffice won't start because it needs an X server. My linux box doesn't have one. Is there some dummy blackhole X server around I can use? I'm using debian etch. 回答1: You could maybe try xvfb In the X Window System, Xvfb or X virtual framebuffer is an X11 server that performs all graphical operations in memory, not showing any screen output. From the point of view of the client, it acts exactly like any other server,

OpenOffice.org development with pyUno for Windows—which Python?

怎甘沉沦 提交于 2019-11-30 20:40:35
At home, on Linux, I've experimented with pyUNO to control OpenOffice.org using Python. I've been using Python 2.6. It all seems to work nicely. Now I thought I would try one of my scripts ( run a graphical diff for ODF doc ) on Windows. But when I tried to run it, I got: ImportError: No module named uno According to udk: Python UNO Bridge and OpenOffice.org Running Python on Windows , I have to run the Python interpretter that's installed with OpenOffice.org. Q1: Is Python 2.6 available for OpenOffice.org? However, that interpreter is Python 2.3 , which is getting a little old! and my script

How do I make vba code compatible with libre office

拥有回忆 提交于 2019-11-30 12:19:20
I have recently migrated to pclinuxos from windows and seem to like it. The only problem I am facing is that libreoffice, the default spreadsheet package is not compatible with excel macros. Below is the vba code I have: Option VBASupport Sub DeleteToLeft() Selection.SpecialCells(xlBlanks).Delete shift:=xlToLeft End Sub Function SinceLastWash() Application.Volatile WashCount = 0 WearCount = 0 CurrentRow = Application.ThisCell.Row For i = 3 To 35 If Range(Cells(CurrentRow, i), Cells(CurrentRow, i)).Value = "a" Then WearCount = WearCount + 1 End If If Range(Cells(CurrentRow, i), Cells(CurrentRow

How to create .odt files with C#.NET?

和自甴很熟 提交于 2019-11-30 09:29:00
Note: I found this "Creating a Word Doc in C#.NET" , but that is not what I want. Do you know how to create a .odt to create file from C# .NET? Is there a .NET component or wrapper for an OpenOffice.org library to do this? bmotmans Have a look at AODL (see http://odftoolkit.org/projects/odftoolkit/pages/AODL ). fully managed .NET 1.1 (so it runs on MS.Net and Mono) support for text and spreadsheet documents create, read, edit, save documents ... EDIT by kame: New link AODL-Wiki You can check out the OASIS Standards site for information on the ODT standard. From what I've seen, they're using an

OpenOffice PDF Export Library

强颜欢笑 提交于 2019-11-30 07:45:35
I am looking for a library which will allow me to render text and graphics output onto a PDF document. ( Cairo is certainly an option.) I would like to know how OpenOffice writes PDF files to see if I could use the same library. What library is being used by OpenOffice for PDF export? Edit: I am looking for a C or C++ library. I looked everywhere to find out how to export any document to PDF using OpenOffice. I finally found a buried post in the OpenOffice forums that got me 90% there. Here is my 100% solution. Works with OpenOffice 3.1. You must install OpenOffice to use this code. You must