!合并文件功能修复无法插入空白页的问题

This commit is contained in:
WMJ
2026-03-06 11:49:57 +08:00
parent 0622e3861f
commit 5ede2239e4
2 changed files with 644 additions and 657 deletions
File diff suppressed because it is too large Load Diff
+2 -4
View File
@@ -268,7 +268,7 @@ namespace PDFPatcher.Processor
Tracker.TraceMessage("正在导出信息文件。");
if (targetFile.HasExtension(Ext.Txt)) {
Tracker.SetProgressGoal(50);
using (TextWriter w = new StreamWriter(targetFile, false, AppContext.Exporter.GetEncoding())) {
using (var w = new StreamWriter(targetFile, false, AppContext.Exporter.GetEncoding())) {
DocInfoExporter.WriteDocumentInfoAttributes(w, sourceFile, r.NumberOfPages);
export.ExportDocument(w);
w.WriteLine();
@@ -892,9 +892,7 @@ namespace PDFPatcher.Processor
FormHelper.ErrorBox("在导出信息文件时遇到错误:\n" + ex.Message);
}
finally {
if (r != null) {
r.Close();
}
r?.Close();
}
}