add pdf support for appScripts