See attached document. A png image at the end of file generates spurious text at the end of the FO file (and thus also in pdf).
The attached sample document is a shrinked version of a big original document, this explains the large "styles.xml" sub-file. However most of these styles are probably not used.
A document that triggers the bug