Size of writer document content

Is there any function in Writer or extensions to it that provide a list of the name and size of each significant element in a document? The problem I am trying to solve is to identify those elements in a document that are very large so that I can reduce their size and therefore the size of the document. Graphics and images are likely candidates but there is no way to see their size inside the document. Certain Sections can also be the problem. The boundaries set by elements in the Cross-reference list would be sufficient.

I don’t know of any LibreOffice method or extension to do this, but an OpenDocument file is a zipped file. If you rename a copy of your file so it has a .zip extension you can open it with an archive tool. Images are contained in a Pictures folder in the zip file and it can be opened to examine the embedded images and their sizes. The content.xml file contains the text content and also code to generate graphics objects that were inserted with draw functions. Teasing out the sizes of the <draw: /> objects in the text could be a chore.

To evaluate the size of sections you might delete individual sections from the document and observe the decrease in document size.