feat: rebrand to MMD PDF, single corporate theme, and remove original text under an edit
- Services/PdfRedactText.cs: strip text whose origin falls inside a CoverAnnotation from the page content stream at save time, hooked into PdfBurn.DrawAnnotationsIntoDoc. Fixes edited values staying recoverable by text extraction. - Themes/MMD.xaml replaces all thirteen themes; picker and accent strip removed; no dark mode. - Rename KillerPDF -> MMD PDF across code, resources, packaging and locale strings; new icon. - Remove the upstream author credit and the in-app install button.
This commit is contained in:
@@ -2,7 +2,7 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace KillerPDF.Services
|
||||
namespace MmdPdf.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Keeps the single-exe build self-sufficient for OCR. The native Tesseract DLLs (x64) and the bundled
|
||||
@@ -12,8 +12,8 @@ namespace KillerPDF.Services
|
||||
/// </summary>
|
||||
internal static class OcrNativeBootstrap
|
||||
{
|
||||
private const string NativePrefix = "KillerPDF.OcrNative.";
|
||||
private const string TessDataPrefix = "KillerPDF.OcrTessData.";
|
||||
private const string NativePrefix = "MmdPdf.OcrNative.";
|
||||
private const string TessDataPrefix = "MmdPdf.OcrTessData.";
|
||||
|
||||
private static readonly object _gate = new();
|
||||
private static bool _langReady;
|
||||
@@ -31,7 +31,7 @@ namespace KillerPDF.Services
|
||||
/// </summary>
|
||||
public static string TessDataDir { get; } = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
||||
"KillerPDF", "tessdata");
|
||||
"MmdPdf", "tessdata");
|
||||
|
||||
/// <summary>
|
||||
/// Ensures the bundled language data (English) is present in <see cref="TessDataDir"/> and returns
|
||||
@@ -77,7 +77,7 @@ namespace KillerPDF.Services
|
||||
string version = asm.GetName().Version?.ToString() ?? "0";
|
||||
string baseDir = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
||||
"KillerPDF", "ocr", version);
|
||||
"MmdPdf", "ocr", version);
|
||||
string nativeDir = Path.Combine(baseDir, "x64");
|
||||
Directory.CreateDirectory(nativeDir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user