There is any linux command line tool of Xmind or any external tool or some java code, for emulate the export function and convert a .xmind file to a pdf file?
Try pandoc or https://github.com/sky-y/xmindoc I know pandoc converts a whole bunch of stuff, so I