I want to create tests for our product which uses Aspose.Words 20.9 for Java 11. Our product reads a DOTX tempate file and it generates a DOCX file. The tests need to succeed on both Windows and Linux (Windows 10 and a headless CentOS Docker-image).
For testing, I force Aspose to use the Noto fonts on both platforms. DOCX and PDF files seem to contain a timestamp, so I also tried PNG and GIF files. Though they look the same (in a browser and in e.g. Beyond Compare), neither their bytes nor their pixels (as read using ImageIO) are identical.
Even HTML output is different between the two Operating Systems (lines are wrapped too soon under Linux). Text-output removes too much formatting to be really useful for this purpose.
How to best compare Aspose output with a reference output?