The sample code is as follows: var oldPdf = PdfReader.Open("测试.pdf"); foreach (var oldPage in oldPdf.Pages) { // Insert a page[......]继续阅读

2023年10月18日 0条评论 118点热度 0人点赞 痴者工良 阅读全文

示例代码如下: var oldPdf = PdfReader.Open("测试.pdf"); foreach (var oldPage in oldPdf.Pages) { // 插入一个页面[......]继续阅读

2023年10月18日 0条评论 1789点热度 0人点赞 痴者工良 阅读全文

The source file is a PDF composed of various points, lines, text, and tables, and all content needs to be converted into image format and stored in a[......] 继续阅读

2023年10月18日 0条评论 116点热度 0人点赞 痴者工良 阅读全文

源文件是 PDF 全元素,也就是各种点线、文字、表格组成,需要将内容全部转成图片形式存储到 pdf 中。 引入: <ItemGroup> <PackageReference Include="FreeSpire.PDF" Version="8.6.0" />[......]继续阅读

2023年10月18日 0条评论 2064点热度 0人点赞 痴者工良 阅读全文

ImageMagick is a powerful image processing library that supports over 100 major file formats (excluding sub-formats). Using Magick.NET, you can use Im[......] 继续阅读

2023年10月17日 0条评论 1910点热度 0人点赞 痴者工良 阅读全文

ImageMagick 是一个强大的图像处理库,支持100多种主要的文件格式(不包括子格式)。使用 Magick.NET,你可以在 c #/vb.net/. net Core 应用程序中使用 ImageMagick,而无需在服务器或桌面上安装 ImageMagick。 项目地址:https://gi[......] 继续阅读

2023年10月17日 0条评论 1876点热度 0人点赞 痴者工良 阅读全文

Maomi.Mapper 项目地址:https://github.com/whuanle/Maomi.Mapper 注:本项目用于教学目的,性能较差,请勿用于生产环境。 MaomiMapper 是一个使用表达式树构造生成对象成员映射的框架,即对象映射框架。 虽然 MaomiMapper 性能不啥样,[......] 继续阅读

2023年10月15日 0条评论 1780点热度 0人点赞 痴者工良 阅读全文

Maomi.Mapper Project address: https://github.com/whuanle/Maomi.Mapper Note: This project is for educational purposes only and has poor performance; do[......] 继续阅读

2023年10月15日 0条评论 156点热度 0人点赞 痴者工良 阅读全文

System.IO.Compression 是官方发布的一个由于解压缩的工具包,默认使用 utf8 编码解压缩文件。 但是在 Windows 上,编码比较混乱,如果文件或目录是中文名称,那么解压后会出现乱码,即使压缩包都是 UTF8 编码,.NET 解压也会出现乱码问题,所以需要使用 GB2312[......] 继续阅读

2023年10月12日 0条评论 2780点热度 0人点赞 痴者工良 阅读全文

System.IO.Compression is an official release of a decompression toolkit that defaults to using UTF-8 encoding for decompressing files. However, on Win[......] 继续阅读

2023年10月12日 0条评论 2690点热度 0人点赞 痴者工良 阅读全文

C# 编写 SignalR 客户端时需要手动注入客户端方法: connection.On<string, string>("ReceiveMessage", (user, message) => { t[......]继续阅读

2023年9月25日 1条评论 2208点热度 3人点赞 痴者工良 阅读全文

C# Writing a SignalR Client Requires Manual Injection of Client Methods: connection.On<string, string>("ReceiveMessage", ([......]继续阅读

2023年9月25日 1条评论 2216点热度 3人点赞 痴者工良 阅读全文

研究了很久源码,发现了其运行机制。 如果 BlazorWebView 跳转的页面不是 https://0.0.0.0 ,那么就会使用客户端之外的浏览器打开页面。 // 这里的地址允许在浏览器中打开 public static readonly Uri[] URLS = new Uri[......]继续阅读

2023年9月21日 0条评论 1964点热度 0人点赞 痴者工良 阅读全文

The source code has been studied for a long time, and its operating mechanism has been discovered. If the page that BlazorWebView navigates to is not[......] 继续阅读

2023年9月21日 0条评论 138点热度 0人点赞 痴者工良 阅读全文

模型类: public class Test { [JsonConverter(typeof(string))] public int Value { get; set; } } API 接口: [HttpPost("aaa")[......]继续阅读

2023年9月19日 0条评论 1813点热度 0人点赞 痴者工良 阅读全文

Model Class: public class Test { [JsonConverter(typeof(string))] public int Value { get; set; } } API Interface: [HttpPost("aaa")][......]继续阅读

2023年9月19日 0条评论 146点热度 0人点赞 痴者工良 阅读全文

using System; using System.Runtime.CompilerServices; using System.Threading.Tasks; async Task Main() { Task<int> task = CreateTask(); i[......]继续阅读

2023年9月19日 0条评论 1716点热度 0人点赞 痴者工良 阅读全文

using System; using System.Runtime.CompilerServices; using System.Threading.Tasks; async Task Main() { Task<int> task = CreateTask(); int res[......]继续阅读

2023年9月19日 0条评论 130点热度 0人点赞 痴者工良 阅读全文

默认 webview2 使用英文语言显示,包括控制台、打印台等地方,都是英文提示,因此可以修改为本地语言。 public static void SetWebviewLanguage(string language = "zh-CN") { v[......]继续阅读

2023年9月14日 0条评论 2112点热度 0人点赞 痴者工良 阅读全文

By default, WebView2 displays in English, including in places like the console and print interface. However, it can be modified to use the local langu[......] 继续阅读

2023年9月14日 0条评论 112点热度 0人点赞 痴者工良 阅读全文
1234518