fixed pdf generation path