devise and pdf