GiniVisionDocumentBuilder

public class GiniVisionDocumentBuilder : NSObject

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

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