Batch Conversion of ODT files to RTF

Hi,

I have about 1000 ODT files I would like to convert to rtf. I downloaded an app which only does one at a time, with facility to input a directory or group of files. I was hoping perhaps to create a batch script that would open pages, change the font size, then right out the file in rtf. Is this possible?


Thanks,

Ed

iMac Line (2012 and Later)

Posted on Jan 20, 2019 12:36 PM

Reply
9 replies

Jan 20, 2019 3:46 PM in response to SantaCrnz

I suggest you test textutil on a couple of those ODT files before you go all in. I just tried to change the font and font size via textutil in High Sierra 10.13.6 (17G4015) and neither were set in the output RTF file. The ODT font used was Book Antigua 12 pt.


textutil -convert rtf -font Helvetica -fontsize 24 test.odt


Following the above command, here are what the following applications reported about the RTF font and font size:

  • LibreOffice Writer v6.1.4 — Book Antigua 12 pt.
  • TextEdit — Book Antigua 12 pt.
  • Pages v7.3 — Book Antigua 12 pt.
  • Softmaker's TextMaker 2018 v945 — Basic Roman 12 pt.

Jan 21, 2019 11:07 AM in response to VikingOSX

Thanks, that did it. After reading the article, it seemed it was always using a txt file as a starting point. I got it to work by converting all the odt files to text, then converting the txt to rtf while changing the font size. It worked like a charm and was to convert all the files quickly by using the wildcard symbol (*.txt) as the file input.

Thanks for your help!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Batch Conversion of ODT files to RTF

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.