使用PDF Clown构建文本标注 [英] Build text callout with PDF Clown

查看:121
本文介绍了使用PDF Clown构建文本标注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

adobe acrobat阅读器具有称为文本标注的标记工具。



是否可以使用PDF Clown构建这种类型的对象?

解决方案

OP提供的示例与PDF小丑 StaticNote StaticNote.CalloutLine 非常相似。



AnnotationSample PDF小丑cli示例中的相关代码为:

  //标注。 
composer.showText(标注注释批注:,新Point(35,85));
新的StaticNote(
页,
新的Rectangle(250、90、150、70),
标注注释文本
).withLine(
新StaticNote.CalloutLine(
页,
新Point(250,125),
新Point(150,125),
新Point(100,100)


.withLineEndStyle(LineEndStyleEnum.OpenArrow)
.withBorder(new Border(1))
.withColor(DeviceRGBColor.get(Color.YELLOW));

(来自


the adobe acrobat reader have markup tool called "text callout".

It's possible to build with PDF Clown a object of this type?

解决方案

The sample provided by the OP looks pretty much like the PDF Clown StaticNote with a StaticNote.CalloutLine.

The relevant code from the AnnotationSample PDF Clown cli example are:

// 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)

The output:

这篇关于使用PDF Clown构建文本标注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆