First PDF exporter attempt. Not fully working yet