简体   繁体   中英

Build text callout with PDF Clown

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:

<code> AnnotationSample </ code>结果的屏幕截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM