File types and extensions are now determined dynamically instead of being
assumed to be PDF.