Getting out bad pdf