Often issues arise with specific documents, esp. performance issues. It will help LibreOffice QA and developers when triaging issues, if there is a overview of what might be special about one specific document.
This EasyHack is to create a script or LibreOffice extension that provides statistics about a document. For a text document including for example:
- number of paragraphs
- number of pages
- number of images/embedded media
- number of changetracking (redlines)
- number of styles, bookmarks, tables, indexes, text frames, OLE objects, sections, hyperlinks, references, comments ...
The extension should produce the output as simple text, so that this can be easily copypasted into a bugreport. For other document types, other information might be relevant. For a simple scope, it should be ok to start with basic numbers about text documents.
Steps to Reproduce:
User Profile Reset: No
I'm Anuj Agrawal. I'd like to work on this issue. Can you please elaborate on the format of the text output you wish the Script to generate?
Created attachment 150623 [details]
The attachment contains my easy hack to the document anayser for a Libreoffice Document
Hi Anuj Agarwal,
Any update on the bug?
I took a look at email@example.com 's solution and I think that it's both incomplete and written in Python. I would like to work on it. Any objections?
Can somebody please provide any update on this bug. One user did provide a script written in python. Is this bug still open. If yes then please do speak in the context of the mentioned script.
I would like to start working on this bug. Wish me luck!
It seems Piya abandoned this, so unassigning.
Created attachment 159166 [details]
Script for counting elements in *.odt documents
I fixed some errors in the script from firstname.lastname@example.org :
- No counting of tables
- No counting of images
Also rewrote it, to make future additions possible.
To be done:
- Adding more category's
- Fixing page counting when doing manual page breaks, or finding a proper way to count pages.
Will try to add more stuff in the near future.