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:
+12
-12
@@ -10,9 +10,9 @@ using Microsoft.Win32;
|
||||
using PdfSharpCore.Drawing;
|
||||
using PdfSharpCore.Pdf;
|
||||
using PdfSharpCore.Pdf.IO;
|
||||
using KillerPDF.Services;
|
||||
using MmdPdf.Services;
|
||||
|
||||
namespace KillerPDF
|
||||
namespace MmdPdf
|
||||
{
|
||||
// Import images as a PDF, and compress the current PDF to a .zip. Kept in its own partial-class
|
||||
// file rather than the MainWindow monolith. User-facing strings go through Loc() (keys live in
|
||||
@@ -51,7 +51,7 @@ namespace KillerPDF
|
||||
{
|
||||
AbortTabLoad(target, prev, createdNew);
|
||||
KillerDialog.Show(this, Loc("Str_Err_ImportFailed") + "\n" + ex.Message,
|
||||
"KillerPDF", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
"MmdPdf", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace KillerPDF
|
||||
return outPath;
|
||||
}
|
||||
|
||||
// AddImagePagesFromFile and IsPdfPath live in Services/PdfImport.cs (KillerUI refactor).
|
||||
// AddImagePagesFromFile and IsPdfPath live in Services/PdfImport.cs (MmdPdfUI refactor).
|
||||
|
||||
// ----- Drag/drop of folders, archives, and multiple files ----------------------------
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace KillerPDF
|
||||
{
|
||||
CleanupDirs(tempDirs);
|
||||
KillerDialog.Show(this, Loc("Str_Err_ImportFailed") + "\n" + ex.Message,
|
||||
"KillerPDF", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
"MmdPdf", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace KillerPDF
|
||||
{
|
||||
var proceed = KillerDialog.Show(this,
|
||||
string.Format(Loc("Str_Drop_TooMany"), found.Count, MaxDropFiles),
|
||||
"KillerPDF", MessageBoxButton.OKCancel);
|
||||
"MmdPdf", MessageBoxButton.OKCancel);
|
||||
if (proceed != MessageBoxResult.OK) { CleanupDirs(tempDirs); return; }
|
||||
found = found.GetRange(0, MaxDropFiles);
|
||||
}
|
||||
@@ -164,7 +164,7 @@ namespace KillerPDF
|
||||
if (found.Count > 30)
|
||||
{
|
||||
var ok = KillerDialog.Show(this, string.Format(Loc("Str_Drop_ManyTabs"), found.Count),
|
||||
"KillerPDF", MessageBoxButton.OKCancel);
|
||||
"MmdPdf", MessageBoxButton.OKCancel);
|
||||
if (ok != MessageBoxResult.OK) return;
|
||||
}
|
||||
foreach (var f in found)
|
||||
@@ -207,7 +207,7 @@ namespace KillerPDF
|
||||
HideBusyOverlay(busy);
|
||||
AbortTabLoad(target, prev, createdNew);
|
||||
KillerDialog.Show(this, Loc("Str_Err_ImportFailed") + "\n" + ex.Message,
|
||||
"KillerPDF", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
"MmdPdf", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -235,7 +235,7 @@ namespace KillerPDF
|
||||
{
|
||||
AbortTabLoad(target, prev, createdNew);
|
||||
KillerDialog.Show(this, Loc("Str_Err_ImportFailed") + "\n" + ex.Message,
|
||||
"KillerPDF", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
"MmdPdf", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ namespace KillerPDF
|
||||
|
||||
private static string? ExtractZipToTemp(string zipPath)
|
||||
{
|
||||
string dir = Path.Combine(Path.GetTempPath(), "KillerPDF-zip-" + Guid.NewGuid().ToString("N")[..8]);
|
||||
string dir = Path.Combine(Path.GetTempPath(), "MmdPdf-zip-" + Guid.NewGuid().ToString("N")[..8]);
|
||||
try { Directory.CreateDirectory(dir); ZipFile.ExtractToDirectory(zipPath, dir); return dir; }
|
||||
catch { try { Directory.Delete(dir, true); } catch { } return null; }
|
||||
}
|
||||
@@ -305,7 +305,7 @@ namespace KillerPDF
|
||||
if (_isDirty || string.IsNullOrEmpty(_originalFile) || !File.Exists(_originalFile))
|
||||
{
|
||||
var ask = KillerDialog.Show(this, Loc("Str_Dlg_SaveBeforeZip"),
|
||||
"KillerPDF", MessageBoxButton.OKCancel);
|
||||
"MmdPdf", MessageBoxButton.OKCancel);
|
||||
if (ask != MessageBoxResult.OK) return;
|
||||
SaveInPlace();
|
||||
if (_isDirty || string.IsNullOrEmpty(_originalFile) || !File.Exists(_originalFile))
|
||||
@@ -337,7 +337,7 @@ namespace KillerPDF
|
||||
catch (Exception ex)
|
||||
{
|
||||
KillerDialog.Show(this, Loc("Str_Err_ZipFailed") + "\n" + ex.Message,
|
||||
"KillerPDF", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
"MmdPdf", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user