Build text callout with PDF Clown

女生的网名这么多〃 提交于 2019-12-13 12:47:31

问题


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

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


回答1:


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:



来源:https://stackoverflow.com/questions/38787680/build-text-callout-with-pdf-clown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!