Ask Your Question

Weird formatting with Image draw:frame inside table cell

asked 2019-11-08 02:19:46 +0100

roemhildtg gravatar image

updated 2020-09-03 16:11:12 +0100

Alex Kemp gravatar image

I'm generating some xml for libreoffice to convert. The current output looks like this:

But the images rendered are way offset and do not fully appear in their correct locations. Any tips as to what I'm doing wrong?

C:\fakepath\Annotation 2019-11-07 191825.png

I'd share the document if I could but it contains some senstive information I can't share publicly.


Thanks for the info. I think it has something to do with the page/document styles. When I remove all styles/reset the image, I was able to get it to work correctly. Here's the document in question (sensitive info removed). It still exhibits the issue.


This is using Windows 10 x64. LibreOffice Version: (x64)

(edit: activated non-broken screenshot)

edit retag flag offensive close merge delete


See my edited answer.

ebot gravatar imageebot ( 2019-11-09 20:23:52 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-11-08 09:44:25 +0100

ebot gravatar image

updated 2019-11-09 19:07:40 +0100

Basically, when working with LibreOffice you should always save in ODF format. In Draw this is ODG. If necessary, you can then create a copy in another file format. However, it is not certain that the result looks like the ODF format.

Information can be found here in the FAQ.

Unfortunately, you do not describe your preferences in detail, which leads to the result shown. Man (me) can not understand it that way.

Since I have just created a similar example for a video, I attach it here. Maybe it will help you.

C:\fakepath\Bilder in Tabellen-Rahmen - mit Beschriftung.odt

You can also reduce your file by the confidential information. The problem should be visible.

You can then upload the file here. To do this, edit your initial question. Don't answer if it is not a solution to your initial question. Edit your question or write a comment. And let me know which operating system you are using. Thank you very much.

EDIT 2091109-19.00 MEZ: Try the following procedure: Mark your table via menu Table>Select>Table. Then select Table>Size>Row height. Give there e.g. 7 cm and uncheck "Dynamically adjust" and click OK. Bring it to your desired size-row. Highlight the respective picture and right-click on it. Choose for whitlow, parallel whitlow. For anchorage "At the paragraph". Mark the pictures and adjust the size and move to the desired position.

Sorry, i have a german UI, it could differ concepts. I wish you success!

Your file edited by me: C:\fakepath\Weird formatting with Image draw-frame inside table cell_bearb.odt

edit flag offensive delete link more


Thanks! I updated the original post.

roemhildtg gravatar imageroemhildtg ( 2019-11-09 18:22:49 +0100 )edit

See my edited answer.

ebot gravatar imageebot ( 2019-11-09 20:24:10 +0100 )edit

Thanks! I guess there's no great way to just generate the XML needed for libre office. Lots of trial and error using the software then examining the output xml.

roemhildtg gravatar imageroemhildtg ( 2019-11-10 23:10:27 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-08 02:19:46 +0100

Seen: 66 times

Last updated: Sep 03