Browse Source

大纲-更改目标位置问题修复

zhuyi 1 year ago
parent
commit
ed960ed96b

+ 1 - 1
PDF Office/ViewModels/BOTA/OutLineControlViewModel.cs

@@ -297,7 +297,7 @@ namespace PDF_Master.ViewModels.BOTA
             CPDFDestination info = new CPDFDestination();
             info.PageIndex = textSelectNodes[0].PageIndex;
             Size size = PDFViewer.Document.GetPageSize(textSelectNodes[0].PageIndex);
-            info.Position_X = (float)(size.Width - textSelectNodes[0].StartPoint.X);
+            info.Position_X = (float)(textSelectNodes[0].StartPoint.X);
             info.Position_Y = (float)(size.Height - textSelectNodes[0].StartPoint.Y);
             outline.Outline.SetDestination(PDFViewer.Document, info);
             Updata(false);

+ 2 - 2
PDF Office/ViewModels/BOTA/SearchContentViewModel.cs

@@ -218,7 +218,7 @@ namespace PDF_Master.ViewModels.BOTA
                     circleannotArgs.Transparency = 1;
                     circleannotArgs.BgColor = Colors.Transparent;
                     circleannotArgs.LineColor = Colors.Red;
-                    circleannotArgs.LineWidth = 2;
+                    circleannotArgs.LineWidth = 1;
                     PDFViewer.CreatePageAnnot(searchItem.TextProperty.PageIndex, circleannotArgs);
                     //PDFViewer.ToolManager.CurrentAnnotArgs.EventType
                     break;
@@ -228,7 +228,7 @@ namespace PDF_Master.ViewModels.BOTA
                     squareAnnotArgs.Transparency = 1;
                     squareAnnotArgs.BgColor = Colors.Transparent;
                     squareAnnotArgs.LineColor = Colors.Red;
-                    squareAnnotArgs.LineWidth = 2;
+                    squareAnnotArgs.LineWidth = 1;
                     PDFViewer.CreatePageAnnot(searchItem.TextProperty.PageIndex, squareAnnotArgs);
                     break;
                 case "Highlight":