adobe acrobat reader 有一个叫做“text callout”的标记工具。
可以用 PDF Clown 构建这种类型的对象吗?
OP 提供的示例看起来很像StaticNote
带有StaticNote.CalloutLine
.
AnnotationSample
PDF Clown cli 示例中的相关代码是:
// Callout.
composer.showText("Callout note annotation:", new Point(35, 85));
new StaticNote(
page,
new Rectangle(250, 90, 150, 70),
"Text of the Callout note annotation"
).withLine(
new StaticNote.CalloutLine(
page,
new Point(250,125),
new Point(150,125),
new Point(100,100)
)
)
.withLineEndStyle(LineEndStyleEnum.OpenArrow)
.withBorder(new Border(1))
.withColor(DeviceRGBColor.get(Color.YELLOW));
输出: