unoconv: Convert between any doc format supported by OOo

Shared Libraries
Forum rules
For sharing working examples of macros / scripts. These can be in any script language supported by OpenOffice.org [Basic, Python, Netbean] or as source code files in Java or C# even - but requires the actual source code listing. This section is not for asking questions about writing your own macros.
Post Reply
User avatar
AndrewZ
Volunteer
Posts: 633
Joined: Mon Oct 08, 2007 1:25 am
Location: Colorado, USA

unoconv: Convert between any doc format supported by OOo

Post by AndrewZ »

unoconv converts between any document format that OpenOffice understands. It uses OpenOffice's UNO bindings for non-interactive conversion of documents.

Supported document formats include Open Document Format (.odt), MS Word (.doc), MS Office Open/MS OOXML (.xml), Portable Document Format (.pdf), HTML, XHTML, RTF, Docbook (.xml), and more.
http://dag.wieers.com/home-made/unoconv/


Until something like this is built into OOo, such a script is handy.
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
User avatar
Bhikkhu Pesala
Posts: 1253
Joined: Mon Oct 08, 2007 1:27 am

Re: unoconv: Convert between any doc format supported by OOo

Post by Bhikkhu Pesala »

Perhaps the thread title should read, “Convert Between Any Major Document Format Supported by OOo,” as I don't see WordPerfect documents listed. It is not something that I need personally, but there are still a few Corel Office Suite users out there.
Idiot Compassion
LibreOffice 6.0.4 on Windows 10
User avatar
AndrewZ
Volunteer
Posts: 633
Joined: Mon Oct 08, 2007 1:25 am
Location: Colorado, USA

Re: unoconv: Convert between any doc format supported by OOo

Post by AndrewZ »

Bhikkhu Pesala wrote:Perhaps the thread title should read, “Convert Between Any Major Document Format Supported by OOo,” as I don't see WordPerfect documents listed. It is not something that I need personally, but there are still a few Corel Office Suite users out there.
It may be a small oversight on Dag's part and could be fixed by a small change. Because I had problems with unoconv, I ended up writing Batch command line file conversion with PyODConverter, and that script definitely supports wpd out of the box.
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
User avatar
dag
Posts: 6
Joined: Thu Jul 29, 2010 12:34 pm
Location: Belgium

Re: unoconv: Convert between any doc format supported by OOo

Post by dag »

unoconv does convert from Wordperfect files to other files, but unoconv only lists the export-formats, not the import formats and Wordperfect is only supported in OpenOffice as an import format, not an export format. Maybe I should make that clear from the documentation/help.

I doubt that PyODConverter can convert to Wordperfect files.
OpenOffice 3.2.1 on RHEL6
User avatar
dag
Posts: 6
Joined: Thu Jul 29, 2010 12:34 pm
Location: Belgium

Re: unoconv: Convert between any doc format supported by OOo

Post by dag »

Let me also add that the list of supported document formats is published here:

http://wiki.services.openoffice.org/wik ... st_OOo_3_0

It indicates what formats are supported as import, export or both.
OpenOffice 3.2.1 on RHEL6
Post Reply