allow pdf from js