1、根据文件名获取到文件名后缀,再判断后缀是不是.pptx
2、把pptx文件解压出来,并打开docProps\app.xml文件,得到的内容如下
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Properties
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">
<Template></Template>
<TotalTime>3189</TotalTime>
<Pages>0</Pages>
<Words>285</Words>
<Characters>0</Characters>
<Application>Microsoft Office PowerPoint</Application>
<DocSecurity>0</DocSecurity>
<PresentationFormat>自定义</PresentationFormat>
<Lines>0</Lines>
<Paragraphs>44</Paragraphs>
<Slides>6</Slides>
<Notes>0</Notes>
<HiddenSlides>0</H