/// <summary>生成全文</summary>
        public async Task <bool> ExecuteAsync(string sourceFile, string pdfFile, string destFile)
        {
            var sourceFileExt = GetExt(sourceFile);

            if (sourceFileExt == this.NewExt)
            {
                return(false);
            }
            var client = new MgmtServiceWrapper();

            return(await client.InvokeAsync(proxy => proxy.GenerateFulltextAsync(sourceFile, pdfFile, destFile)));
        }
Пример #2
0
        /// <summary>生成HTML文件</summary>
        public override async Task <bool> ExecuteAsync(string sourceFile, string destFile)
        {
            var client = new MgmtServiceWrapper();

            return(await client.InvokeAsync(proxy => proxy.GenerateHtmlAsync(sourceFile, destFile)));
        }
        /// <summary>生成指定大小的图片文件</summary>
        public async Task <bool> ExecuteAsync(string sourceFile, string destFile, Size size)
        {
            var client = new MgmtServiceWrapper();

            return(await client.InvokeAsync(proxy => proxy.GenerateImageAsync(sourceFile, destFile, size)));
        }