jdum / odfdo

python library for OpenDocument format (ODF)
Apache License 2.0
48 stars 11 forks source link

ODT template opens in Word, after saved by odfdo, error message #14

Open rodolfolotte opened 3 years ago

rodolfolotte commented 3 years ago

Sounds ridiculous if I want to open the resulted file in Microsoft Word, but as I'm working in a project which requires any kind of user, I was testing the ODT to open in the respective, but it does not succeed.

So... I have created an ODT template, which is used to open, edit, and wrapped in a response object. The problem is that it can not be open Microsoft after the user save it. Still, the ODT template can be open. The message is something like:

"Error trying to open file in Word!

Is there any trick to avoid this? Should I specify a metadata or something?

Thank you so much!

jdum commented 3 years ago

Well, many underlying questions in your post. I should publish several pages of methodology on this, but not now :-)

.odt documents generated by odfdo should open within Word without problem (well except styles, fonts, ...)

Of course you know what follows, so I apologize for all these, but first a few sad rules:

Internet is evil :

From my experience (including my recent odsgenerator script on github)

Sorry, only generalities no precise clue here.

rodolfolotte commented 3 years ago

That was a quite good answer, actually! Many thanks, @jdum ! :)

Ok, then, I will try to narrow down locally, and maybe we have some clue on what could be a solution to this. I will try to have it done without the need of opening in LibreOffice. Hopefully, I come back with some nice workaround!

Thank you again!

bastien34 commented 2 years ago

I also encounter this problem. People are complaining they can't open my generated TextDocument in Word because of "invisible part" which is well, quite hard to see. Any more concise idéa about this bug?