mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-17 04:41:14 +08:00
!合并文件功能修复无法插入空白页的问题
This commit is contained in:
+642
-653
File diff suppressed because it is too large
Load Diff
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user