Skip to content

Commit

Permalink
!在读取命名目标出错时不抛出异常
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 26, 2023
1 parent 3e88802 commit 10705ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion App/Functions/Editor/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,12 @@ void _LoadBookmarkWorker_DoWork(object sender, DoWorkEventArgs e) {
using (var reader = PdfHelper.OpenPdfFile(path, AppContext.LoadPartialPdfFile, false)) {
try {
Tracker.DebugMessage("consolidate");
reader.ConsolidateNamedDestinations();
try {
reader.ConsolidateNamedDestinations();
}
catch (Exception ex) {
Tracker.TraceMessage(ex);
}
Tracker.DebugMessage("get bookmark");
e.Result = new object[] {
OutlineManager.GetBookmark (reader, new UnitConverter () { Unit = Constants.Units.Point }),
Expand Down

0 comments on commit 10705ac

Please sign in to comment.