[英]Build text callout with PDF Clown
the adobe acrobat reader have markup tool called "text callout". Adobe Acrobat Reader具有名为“文本标注”的标记工具。
It's possible to build with PDF Clown a object of this type? 可以使用PDF Clown构建这种类型的对象吗?
The sample provided by the OP looks pretty much like the PDF Clown StaticNote
with a StaticNote.CalloutLine
. 由OP提供的样品看起来非常像PDF小丑
StaticNote
用StaticNote.CalloutLine
。
The relevant code from the AnnotationSample
PDF Clown cli example are: 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));
(From AnnotationSample.java ) (来自AnnotationSample.java )
The output: 输出:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.