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)); }
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); }