public EmptyExecutablePathTest() { var collection = new ServiceCollection(); collection.AddWkHtmlSmartConvert(); _executablePath = collection.BuildServiceProvider().GetService <IExecutablePath>(); }
public RuntimeFolderExecutablePathTest() { var collection = new ServiceCollection(); collection.AddWkHtmlSmartConvert().AddEmbedded(); _executablePath = collection.BuildServiceProvider().GetService <IExecutablePath>(); }
protected ExternalProcess(IExecutablePath executablePath, string executableName) { _executablePath = executablePath; _executableName = executableName; }
public DefaultPdfConvert(IExecutablePath executablePath, IOptions <PdfOptions> options) : base(executablePath, "wkhtmltopdf") { _defaultOptions = options.Value; }