I had trouble reordering pictures and text but I managed to. Needs advanced computer knowledges.

Hello,
I had a problem and I managed to solve it. I think others may get the same trouble so I’m posting my solution here.

Warning: this solution is only for advanced user. I deeply suggest you do a COPY of the original file BEFORE any action “just in case of”. “Case of” happens frequently imho. In this one an error may end with a corrupted file.

I had this problem which has been sometime asked: I had a writer file with picture under which were description of the picture. I wanted to move the text above picture for all picture. Basically a “search find replace” with some regex except you had to put “any picture” into the search bar. It seems in the past there were some extension able to do it but I cannot see any nowadays.

Then I remember odt is is an open file format. :slight_smile: :sunglasses:
So I basically made a copy of my original file (which I kept in a precious safe place) and open with a file archiver the odt file.
In it I saw a series of file. The one that interested me is content.xml which is a pure xml file. I then opened it with a text editor and could use basic search and replace to do what I needed to do, then replaced the original content.xml with the modified one.
That’s all folks.

PS: thanks a lot libreoffice not only for being free but for using open format :person_raising_hand:

Thanks for sharing!

Note that in the way you provided this, it is now “a question without a solution”, so people looking for a solution for a similar problem can just skip it. It is better to re-organize as: a “problem” in the question part (edit it, and re-word to only describe the problem, as the user sees it); then press “Suggest a solution” button, where will go your way of resolving this. Then you can yourself mark it as the accepted solution.