Spire.PDF 12.8.5 现已正式发布。该版本优化和调整了内部注释,修改及新增了相关 Demo 和文章,并对注释相关的类名及属性进行了调整,以提升 API 的一致性。详情如下。
调整:
- 类名调整
- 属性调整
| 原类名 | 新类名 |
| PdfTextMarkupAnnotationWidget | PdfTextMarkupAnnotation |
| PdfFreeTextAnnotationWidget | PdfFreeTextAnnotation |
| PdfTextAnnotationWidget | PdfTextAnnotation |
| PdfPopupAnnotationWidget | PdfPopupAnnotation |
| PdfLineAnnotationWidget | PdfLineAnnotation |
| PdfRubberStampAnnotationWidget | PdfRubberStampAnnotation |
| PdfPolyLineAnnotation | PdfPolylineAnnotation |
| PdfAttachmentAnnotation | PdfFileAttachmentAnnotation |
| PdfEmbeddedGoToAction | PdfGoToEmbeddedAction |
| PdfTextMarkupAnnotation | PdfHighlightAnnotation |
| 原属性 | 新属性 | 说明 |
| xxx.Text | xxx.Contents | 注释文本内容 |
| xxx.Author | xxx.Title | 注释作者 / 标题 |
| xxx.Bounds | xxx.Rectangle | 注释区域矩形 |
| xxx.TextMarkupColor | xxx.Color | 高亮 / 标记颜色 |
| xxx.Opacity | xxx.StrokingOpacity | 描边不透明度 |
| xxx.LineEndingStyle | xxx.CalloutLineEndingStyle | 引出线端点样式 |
| xxx.CalloutLines | xxx.CalloutLine | 引出线点数组 |
| xxx.BorderStyle / xxx.BorderWidth(lineBorder) | xxx.Border.Style / xxx.Border.Width | 线条边框样式 / 宽度 |
| xxx.BeginLineStyle / xxx.EndLineStyle | xxx.StartingStyle / xxx.EndingStyle | 线条端点样式 |
| xxx.InnerLineColor / xxx.BackColor | xxx.InteriorColor / xxx.Color | 线条内部颜色 / 背景色 |
| xxx.LeaderLineExt | xxx.LeaderLineExtension | 引线延长 |
| xxx.BorderEffect = PdfBorderEffect.BigCloud | xxx.Border.Effect = PdfBorderEffect.Cloudy | 边框云状效果 |
获取 Spire.PDF 12.8.5 请点击:







