Hi I'm looking to use the PSPDFKit framework and its full text search features to find documents. I am doing this in a Cordova/Phonegap application so i want to return the search results data back to my Javascript application.
I am running into an issue with return the document name / path and not the document UID. Is it possible to cast the documentUID to a PSPDFDocument
[library documentUIDsMatchingString:searchString options:nil completionHandler:
^(NSString* searchString, NSDictionary<NSString *,NSIndexSet *> * resultSet) {
for (NSString *UID in resultSet) {
NSIndexSet *indexSet = resultSet[UID];
NSLog(@"Found the following matches in document %@: %@", UID, indexSet);
}
}
The above UID would look something like this:
samplepdf_ffa29462f17ca27908ab82bdd3d575a7
Which doesn't mean very much, theres a method called -metadataForUID but that always returns null when called with the above string.