EasySeries.FileOpe
1.1.0
dotnet add package EasySeries.FileOpe --version 1.1.0
NuGet\Install-Package EasySeries.FileOpe -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EasySeries.FileOpe" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasySeries.FileOpe --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EasySeries.FileOpe, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EasySeries.FileOpe as a Cake Addin #addin nuget:?package=EasySeries.FileOpe&version=1.1.0 // Install EasySeries.FileOpe as a Cake Tool #tool nuget:?package=EasySeries.FileOpe&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EasySeries.FileOpe
Easy文件操作,Easy系列的第三个应用,用于文件操作,PDF打印,视频截图,缩略图。
使用说明:
using EasySeries.FileOpe.Models;
using EasySeries.FileOpe;
using Microsoft.AspNetCore.Mvc;
namespace EasySeries.Simple.Controllers;
public class FileController : Controller
{
//全static方法,直接调用即可.
[HttpGet("file")]
public async Task<FileContentResult> DownFileAsync(string filePath)
{
var fileBuffer = await EasyFile.GetFileBufferAsync(filePath);
return File(fileBuffer.Buffer, fileBuffer.MIME, fileBuffer.FileName);
}
[HttpGet("printers")]
public List<PrinterInfo> GetPrinterList()
{
return EasyFile.GetPrinterList();
}
}
一览
//保存文件至目标文件夹.
SaveFileAsync();
//获取文件Buffer.
GetFileBufferAsync();
//获取文件Stream.
GetFileSteam();
//远程HTTP下载.
RemoteDownFileAsync();
//写txt文件日志.
TxtLogAsync();
//获取本机打印机列表(仅Windows 6.1及以上支持).
GetPrinterList();
//打印PDF文件(仅Windows 6.1及以上支持).
PrintPdf();
//PDF转Image.
PdfToImageAsync();
//FFmpeg截图命令(需要先安装FFmpeg,并加入环境变量,以供命令调用).
FFmpegSnippingAsync();
//FFmpeg截图命令(需要先安装FFmpeg,并加入环境变量,以供命令调用).
FFmpegSnippingAsync();
//缩略图.
ThumbnailAsync();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- CliWrap (>= 3.6.6)
- RestSharp (>= 111.4.0)
- SixLabors.ImageSharp (>= 3.1.4)
- Syncfusion.PdfToImageConverter.Net (>= 26.1.42)
- System.Drawing.Common (>= 9.0.0-preview.6.24327.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.0 | 59 | 8/8/2024 |