|
@@ -51,7 +51,10 @@ namespace ComPDFKit.Tool
|
|
}
|
|
}
|
|
BaseLayer baseLayer = PDFViewer.GetViewForTag(selectTextTag);
|
|
BaseLayer baseLayer = PDFViewer.GetViewForTag(selectTextTag);
|
|
PDFViewer.GetMousePointToPage(out int pageindex, out Point pagepoint);
|
|
PDFViewer.GetMousePointToPage(out int pageindex, out Point pagepoint);
|
|
- (baseLayer as SelectText).MoveDraw(new Point(DpiHelper.StandardNumToPDFNum(pagepoint.X / PDFViewer.CurrentRenderFrame.ZoomFactor), DpiHelper.StandardNumToPDFNum(pagepoint.Y / PDFViewer.CurrentRenderFrame.ZoomFactor)), pageindex, PDFViewer, new Point(10, 10), DoubleClick);
|
|
|
|
|
|
+ if(pageindex>=0)
|
|
|
|
+ {
|
|
|
|
+ (baseLayer as SelectText).MoveDraw(new Point(DpiHelper.StandardNumToPDFNum(pagepoint.X / PDFViewer.CurrentRenderFrame.ZoomFactor), DpiHelper.StandardNumToPDFNum(pagepoint.Y / PDFViewer.CurrentRenderFrame.ZoomFactor)), pageindex, PDFViewer, new Point(10, 10), DoubleClick);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
public void DrawEndSelectText()
|
|
public void DrawEndSelectText()
|