Initial version of pdf creation