使用PDF Clown构建文本标注
adobe acrobat reader有一个名为“text callout”的标记工具。
用PDF Clown构建这种类型的对象是可能的吗?
OP提供的示例与使用StaticNote.CalloutLine
的PDF Clown 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));
(来自AnnotationSample.java )
输出: