YTKPdfEditor 1.0.5

dotnet add package YTKPdfEditor --version 1.0.5
NuGet\Install-Package YTKPdfEditor -Version 1.0.5
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="YTKPdfEditor" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YTKPdfEditor --version 1.0.5
#r "nuget: YTKPdfEditor, 1.0.5"
#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 YTKPdfEditor as a Cake Addin
#addin nuget:?package=YTKPdfEditor&version=1.0.5

// Install YTKPdfEditor as a Cake Tool
#tool nuget:?package=YTKPdfEditor&version=1.0.5

#使用说明 一个pdf内容修改的模块;实质上是 内容的覆盖;

string src = @"C:\Users\ETCOMM\Desktop\temp\0.pdf";
string dest = @"C:\Users\ETCOMM\Desktop\temp\2.pdf";
 
YTKPdfEditor.PdfTextManager manager = new YTKPdfEditor.PdfTextManager();
//如果不清楚 可以使用这个函数 来获取 所有可以替换的块
//List<RectAndText> AllBlock = manager.GetBlock(src);
 
bool Result = manager.ReplaceText(src, dest, new List<ReplaceText>() {
    new ReplaceText(){
        TargetText="病人姓名:安女士_140758_WBB0WE7P",
        NewText ="客户姓名: 测男士_140758_WBB0WE7P",
        NewTextFontPath=@"D:\YTK\Document\Holter\trunk\code\DCGTools\DCG.Tools\Resource\simsun.ttf",
        NewTextSize=10,
        BackColor=Color.White,
        NewTextColor=Color.Red
        },
      new ReplaceText(){
        TargetText="动态心电监测报告",
        NewText ="快速心电监测报告",
        NewTextFontPath=@"D:\YTK\Document\Holter\trunk\code\DCGTools\DCG.Tools\Resource\simsun.ttf",
        NewTextSize=20,
        BackColor=Color.White,
        NewTextColor=Color.Red
      },
      new ReplaceText(){
        TargetText="2109220002",
        NewText="111111111111111111",
        NewTextFontPath=@"D:\YTK\Document\Holter\trunk\code\DCGTools\DCG.Tools\Resource\simsun.ttf",
        NewTextSize=10,
        BackColor=Color.White,
        NewTextColor=Color.Red
      },
      new ReplaceText(){
        TargetText="病例号:2109220002",
        NewText="编号:2109220002",
        NewTextFontPath=@"D:\YTK\Document\Holter\trunk\code\DCGTools\DCG.Tools\Resource\simsun.ttf",
        NewTextSize=10,
        BackColor=Color.White,
        NewTextColor=Color.Red
      }
});
Console.WriteLine(Result);
Console.ReadKey();
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0.5 281 1/7/2022