stripped back again and added in css styles to pdf