view pdf and image to browser