Ejemplo n.º 1
0
 public OcrDependencyManager(AppConfigManager appConfigManager, IUserConfigManager userConfigManager)
 {
     this.appConfigManager  = appConfigManager;
     this.userConfigManager = userConfigManager;
     ExternalComponent.InitBasePath(appConfigManager);
     Components = new OcrComponents();
     Downloads  = new OcrDownloads();
 }
Ejemplo n.º 2
0
        public GhostscriptPdfRenderer(IComponentInstallPrompt componentInstallPrompt, AppConfigManager appConfigManager, IErrorOutput errorOutput)
        {
            this.componentInstallPrompt = componentInstallPrompt;
            this.appConfigManager       = appConfigManager;
            this.errorOutput            = errorOutput;

            gsLibBytes = new Lazy <byte[]>(() => File.ReadAllBytes(Dependencies.GhostscriptComponent.Path));
            ExternalComponent.InitBasePath(appConfigManager);
        }
Ejemplo n.º 3
0
 public OcrDependencyManager(AppConfigManager appConfigManager)
 {
     ExternalComponent.InitBasePath(appConfigManager);
     Components = new OcrComponents();
     Downloads  = new OcrDownloads();
 }