【发布时间】:2019-10-06 15:18:40
【问题描述】:
我创建了一个PdfFreeTextAnnotation,但setColor-Method 只是注释的背景。
如何设置实际的fontcolor、fontsize和字体?
Dim rec As iText.Kernel.Geom.Rectangle = ...
Dim anno As Annot.PdfFreeTextAnnotation = New
Annot.PdfFreeTextAnnotation(rec, New PdfString(_annotation.Text))
anno.SetName(New PdfString(_annotation.Name))
anno.SetFlags(192)
anno.SetBorder(New iText.Kernel.Pdf.PdfAnnotationBorder(0, 0, 0))
pdfDoc.GetPage(_annotation.PageNumber).AddAnnotation(anno)
【问题讨论】:
标签: pdf annotations itext itext7