GiniCaptureDocumentBuilder

public class GiniCaptureDocumentBuilder : NSObject

The GiniCaptureDocumentBuilder provides a way to build a GiniCaptureDocument from a Data object and a DocumentSource. Additionally the DocumentImportMethod can bet set after builder iniatilization. This is an example of how a GiniCaptureDocument should be built when it has been imported with the Open with feature.

let documentBuilder = GiniCaptureDocumentBuilder(data: data, documentSource: .appName(name: sourceApplication))
documentBuilder.importMethod = .openWith
let document = documentBuilder.build()
do {
try document?.validate()
...
} catch {
...
}