This script could be used to add allowed inline downloaded MIME types for one Web Application in Microsoft SharePoint Server 2010.
By default PDF files cannot open in browser. It is not listed as a safe MIME type. But for most companies, PDF files are widely used in their daily work, so it is necessary to add PDF to the allowed inline downloaded MIME types list.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery