|
@@ -116,7 +116,7 @@
|
|
|
// 1.abstract
|
|
|
NSMutableArray* mArray = [NSMutableArray array];
|
|
|
if (self.currentPath) {
|
|
|
- [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Name:",kDocumentInfoTitle nil),kDocumentInfoTitle, [self.currentPath lastPathComponent], kDocumentInfoValue, nil]];
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"File Name:",kDocumentInfoTitle nil),kDocumentInfoTitle, [self.currentPath lastPathComponent], kDocumentInfoValue, nil]];
|
|
|
|
|
|
[mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Size:",kDocumentInfoTitle nil),kDocumentInfoTitle, [self fileSizeStr], kDocumentInfoValue, nil]];
|
|
|
}
|
|
@@ -168,7 +168,7 @@
|
|
|
range.location = 14;range.length=2;
|
|
|
[mSting appendFormat:@":%@",[tstring substringWithRange:range]];
|
|
|
|
|
|
- [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"CreationDate:",kDocumentInfoTitle nil),kDocumentInfoTitle, mSting, kDocumentInfoValue, nil]];
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Creation Date:",kDocumentInfoTitle nil),kDocumentInfoTitle, mSting, kDocumentInfoValue, nil]];
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -193,7 +193,7 @@
|
|
|
range.location = 14;range.length=2;
|
|
|
[mSting appendFormat:@":%@",[tstring substringWithRange:range]];
|
|
|
|
|
|
- [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Modification:",kDocumentInfoTitle nil),kDocumentInfoTitle, mSting, kDocumentInfoValue, nil]];
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Modification Date:",kDocumentInfoTitle nil),kDocumentInfoTitle, mSting, kDocumentInfoValue, nil]];
|
|
|
}
|
|
|
}
|
|
|
[tableArray addObject:mArray];
|
|
@@ -201,14 +201,18 @@
|
|
|
// 3.execute
|
|
|
mArray = [NSMutableArray array];
|
|
|
|
|
|
- [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Encrypted:",kDocumentInfoTitle nil),kDocumentInfoTitle, ((self.pdfView.document.isEncrypted == YES) ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
-
|
|
|
- [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Unlocked:",kDocumentInfoTitle nil),kDocumentInfoTitle, NSLocalizedString(@"YES", nil), kDocumentInfoValue, nil]];
|
|
|
-
|
|
|
- [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"AllowsCopying:",kDocumentInfoTitle nil),kDocumentInfoTitle, (self.pdfView.document.allowsCopying ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
-
|
|
|
- [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"AllowsPrinting:",kDocumentInfoTitle nil),kDocumentInfoTitle, (self.pdfView.document.allowsPrinting ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Allow Printing:",kDocumentInfoTitle nil),kDocumentInfoTitle, (self.pdfView.document.allowsPrinting ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
+
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Allow Copying:",kDocumentInfoTitle nil),kDocumentInfoTitle, (self.pdfView.document.allowsCopying ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
+
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Allow Document Change:",kDocumentInfoTitle nil),kDocumentInfoTitle, (self.pdfView.document.allowsDocumentChanges ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
+
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Allow Document Assembly:",kDocumentInfoTitle nil),kDocumentInfoTitle, (self.pdfView.document.allowsDocumentAssembly ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
+
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Allow Document Commenting:",kDocumentInfoTitle nil),kDocumentInfoTitle, ((self.pdfView.document.allowsCommenting == YES) ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
+
|
|
|
|
|
|
+ [mArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Allow Document Form Field Entry:",kDocumentInfoTitle nil),kDocumentInfoTitle, ((self.pdfView.document.allowsFormFieldEntry == YES) ? NSLocalizedString(@"YES", nil) : NSLocalizedString(@"NO", nil)), kDocumentInfoValue, nil]];
|
|
|
|
|
|
[tableArray addObject:mArray];
|
|
|
|
|
@@ -234,18 +238,50 @@
|
|
|
}
|
|
|
case 1:
|
|
|
{
|
|
|
- title = NSLocalizedString(@"Creation:", nil);
|
|
|
+ title = NSLocalizedString(@"Create Information:", nil);
|
|
|
break;
|
|
|
}
|
|
|
case 2:
|
|
|
{
|
|
|
- title = NSLocalizedString(@"Access:", nil);
|
|
|
+ title = NSLocalizedString(@"Access Permissions:", nil);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
return title;
|
|
|
}
|
|
|
|
|
|
+-(UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
|
|
+{
|
|
|
+
|
|
|
+ UILabel *headerLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 0, tableView.bounds.size.width, 20)];
|
|
|
+
|
|
|
+ NSString *title;
|
|
|
+ switch (section)
|
|
|
+ {
|
|
|
+ case 0:
|
|
|
+ {
|
|
|
+ title = NSLocalizedString(@"Abstract:", nil);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 1:
|
|
|
+ {
|
|
|
+ title = NSLocalizedString(@"Create Information:", nil);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ {
|
|
|
+ title = NSLocalizedString(@"Access Permissions:", nil);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ title = [NSString stringWithFormat:@" %@",title];
|
|
|
+ headerLabel.text = title;
|
|
|
+ headerLabel.textColor = [UIColor lightGrayColor];
|
|
|
+
|
|
|
+ return headerLabel;
|
|
|
+}
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
|
|
{
|
|
|
NSMutableArray* array = [self.curTableArray objectAtIndex:section];
|