コード例 #1
0
        public GhostscriptPdfRenderer(IComponentInstallPrompt componentInstallPrompt, AppConfigManager appConfigManager, IErrorOutput errorOutput, GhostScriptManager ghostScriptManager)
        {
            this.componentInstallPrompt = componentInstallPrompt;
            this.appConfigManager       = appConfigManager;
            this.errorOutput            = errorOutput;
            this.ghostScriptManager     = ghostScriptManager;

            gsLibBytes = new Lazy <byte[]>(() => File.ReadAllBytes(ghostScriptManager.GhostScriptComponent.Path));
        }
コード例 #2
0
ファイル: GhostscriptPdfRenderer.cs プロジェクト: Mebus/naps2
        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);
        }