Added functionality to control view/access the content/PDF via hook.