lpaulsen93 / dokuwiki-plugin-odt

Exports a page to the Open Document format used by OpenOffice.org and other word processors
http://www.dokuwiki.org/plugin:odt
13 stars 26 forks source link

exported odt files are very big #323

Open Schubisu opened 2 months ago

Schubisu commented 2 months ago

I'm using the latest version of odt plugin with dokuwiki release 2024-02-06a "Kaos".

When exporting an article to odt without using a template, I get a file of reasonable size (~9KB in my example). When using an odt template (97KB) the exported odt file results in a 2.3MB file.

This may be related with #292 and the issue described here.

I have tried to use the template with unformatted DOKUWIKI-ODT-INSERT placeholder and without the placeholder, with the same result. The large odt file can be opened in libreoffice and again saved as odt file, resulting in a file with reasonable small size again. The big odt file cannot be unzipped with 7z or unzip without errors. When looking at the exported odt file binary with less, it seems to contain quite some repetition (header images appear more often than the number of pages would suggest).