fix pdf view, closes #3955