|
@@ -1415,6 +1415,13 @@ namespace ComPDFKit.Tool
|
|
|
CPDFAnnotation cPDFAnnotation = cPDFPage.CreateAnnot(item.CurrentType);
|
|
|
CreateDefaultAnnot(cPDFAnnotation, item.CurrentType, item);
|
|
|
cPDFAnnotation.SetRect(setRect);
|
|
|
+ CPDFTextPage textPage = cPDFPage.GetTextPage();
|
|
|
+ if (textPage != null)
|
|
|
+ {
|
|
|
+ string newContent = textPage.GetBoundedText(setRect);
|
|
|
+ cPDFAnnotation.SetContent(newContent);
|
|
|
+ }
|
|
|
+
|
|
|
cPDFAnnotation.UpdateAp();
|
|
|
AnnotParam annotParam = ParamConverter.AnnotConverter(cPDFDocument, cPDFAnnotation);
|
|
|
(annotHistory as SquareAnnotHistory).CurrentParam = (SquareParam)annotParam;
|
|
@@ -1459,6 +1466,12 @@ namespace ComPDFKit.Tool
|
|
|
CPDFAnnotation cPDFAnnotation = cPDFPage.CreateAnnot(item.CurrentType);
|
|
|
CreateDefaultAnnot(cPDFAnnotation, item.CurrentType, item);
|
|
|
cPDFAnnotation.SetRect(setRect);
|
|
|
+ CPDFTextPage textPage = cPDFPage.GetTextPage();
|
|
|
+ if (textPage != null)
|
|
|
+ {
|
|
|
+ string newContent = textPage.GetBoundedText(setRect);
|
|
|
+ cPDFAnnotation.SetContent(newContent);
|
|
|
+ }
|
|
|
cPDFAnnotation.UpdateAp();
|
|
|
AnnotParam annotParam = ParamConverter.AnnotConverter(cPDFDocument, cPDFAnnotation);
|
|
|
(annotHistory as CircleAnnotHistory).CurrentParam = (CircleParam)annotParam;
|