Pdf view fixes