在做文件开发的时候,需要获取系统文件的数据,而怎么获取呢,到处搜集了一下
获取所有文件
"public.content"
图片
"public.image"
"com.adobe.pdf"
WORD
"com.microsoft.word.doc"(.doc)
"org.openxmlformats.wordprocessingml.document"(.docx, 我看有的是用‘com.microsoft.word.docx’,但是我尝试后发现并不可以)
EXCEL
"com.microsoft.excel.xls"(.xls)
"org.openxmlformats.spreadsheetml.sheet"(.xlsx,也有用‘com.microsoft.excel.xlsx’,依然不可以)
PPT
"com.microsoft.powerpoint.ppt"(.ppt)
"org.openxmlformats.presentationml.presentation"(.pptx,用‘com.microsoft.powerpoint.pptx’,结果可想而知)
//官方文档也只有(.doc .xls .ppt)这样的老版本的格式支持。。