add pdf save and rake task