My program works fine in eclipse: it generates the document with the desired font, and visible table borders (which are for some reason hidden by default).
However once exporting to .jar I've had consecutive problems, which I resolved until this one.
First, the resulting .jar didn't have a styles.xml, so it generated the document with the default font, etc. Fix was to manually add the styles.xml into the jar.
Next, the parser failed on the ...