|
@@ -94,7 +94,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
{
|
|
{
|
|
|
|
|
|
List<AnnotParam> annotList = GetAnnotCommentList(i, pdfViewer.PDFViewTool.GetCPDFViewer().GetDocument());
|
|
List<AnnotParam> annotList = GetAnnotCommentList(i, pdfViewer.PDFViewTool.GetCPDFViewer().GetDocument());
|
|
- if (annotList != null)
|
|
|
|
|
|
+ if (annotList != null&& annotList.Count>0)
|
|
{
|
|
{
|
|
Dispatcher.Invoke(() =>
|
|
Dispatcher.Invoke(() =>
|
|
{
|
|
{
|
|
@@ -110,7 +110,6 @@ namespace Compdfkit_Tools.PDFControl
|
|
}
|
|
}
|
|
}
|
|
}
|
|
AnnotationList.SetAnnotationList(bindAnnotationResults);
|
|
AnnotationList.SetAnnotationList(bindAnnotationResults);
|
|
- pdfViewer.PDFViewTool.GetCPDFViewer().UpDataAnnotFrame();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public List<AnnotParam> GetAnnotCommentList(int pageIndex, CPDFDocument currentDoc)
|
|
public List<AnnotParam> GetAnnotCommentList(int pageIndex, CPDFDocument currentDoc)
|
|
@@ -136,7 +135,10 @@ namespace Compdfkit_Tools.PDFControl
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
AnnotParam annotParam= ParamConverter.CPDFDataConverterToAnnotParam(currentDoc,pageIndex,annotation);
|
|
AnnotParam annotParam= ParamConverter.CPDFDataConverterToAnnotParam(currentDoc,pageIndex,annotation);
|
|
- annotList.Add(annotParam);
|
|
|
|
|
|
+ if (annotParam!=null)
|
|
|
|
+ {
|
|
|
|
+ annotList.Add(annotParam);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return annotList;
|
|
return annotList;
|