Make PDF viewer working again in public view