fix outputpdf assignment