Example #1
0
        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>();
        }
Example #3
0
 protected ExternalProcess(IExecutablePath executablePath, string executableName)
 {
     _executablePath = executablePath;
     _executableName = executableName;
 }
Example #4
0
 public DefaultPdfConvert(IExecutablePath executablePath, IOptions <PdfOptions> options)
     : base(executablePath, "wkhtmltopdf")
 {
     _defaultOptions = options.Value;
 }