JODConverter and corrupt input ODT files

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
kyetzer
Posts: 1
Joined: Mon Apr 04, 2011 4:34 am

JODConverter and corrupt input ODT files

Post by kyetzer »

I am trying to use JODConverter to convert ODT files to PDF. The ODT files are being generated on the fly but they are flagged as corrupt but fixable (OO writer shows the dialog box to fix). I have tested out the conversion process and it works just fine with odt files that are not corrupt, but it throws an error on the corrupt ones. Is there a way using the UNO API to automatically fix and then convert to PDF these files? I have tried setting the MediaDescriptor flag "RepairPackage" to true but it still does not work. Any help would be greatly appreciated.

-Ken
OpenOffice 3.4 on Windows 64 Vista
Post Reply