Ios 在应用程序中打开后获取文件元数据
我正在使用AppDelegate的Ios 在应用程序中打开后获取文件元数据,ios,objective-c,metadata,nsfilemanager,Ios,Objective C,Metadata,Nsfilemanager,我正在使用AppDelegate的 application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options. 尝试使用MTPDF。请浏览: 我使用过它,它非常有用请粘贴整个代码块。 [[NSFileManager defaultManager] attributesOfItemAtPath:[url path] error:&error];
application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options.
尝试使用
MTPDF
。请浏览:
我使用过它,它非常有用请粘贴整个代码块。
[[NSFileManager defaultManager] attributesOfItemAtPath:[url path] error:&error];
MTPDF *pdf = [MTPDF PDFWithContentsOfURL:[NSURL URLWithString:strURL]];
NSLog(@"%@\n%@\n%@\n%@\n%@\n%@\n%@",pdf.title, pdf.version, pdf.author, pdf.creator, pdf.subject, pdf.creationDate, pdf.modifiedDate);