Fixed .htaccess
FIrst version of pdf generation