generalising PDF viewer on multiple browsers