hi tilman thanks for the reply
i tried this but nothing gets shown. i only get an icon with a question mark in it. looks like the only way is to draw it in the content stream Mark. On Mon, Mar 6, 2017 at 3:40 PM, Tilman Hausherr <[email protected]> wrote: > Am 06.03.2017 um 07:56 schrieb chitgoks: > >> hi. >> >> would like to ask if anyone has successfully created these types of >> annotation? >> >> please share your sample code. >> >> searching through google did not yield any results regarding sample code >> on >> PDAnnotationMarkup. >> >> so I pass this as the parameter of the constructor for a drawing >> annotation >> >> COSDictionary dict = new COSDictionary(); >> dict.setItem(COSName.SUBTYPE, COSName.INKLIST); >> >> then im stuck because there is no method to set the points. please advise? >> >> > You can still use the COS methods, i.e. > annotation.getCOSObject().setItem(COSName.INKLIST, > param); > > where param is an array of arrays. > > there's some code in an unrelated method: > > > public final void setInkList(List<float[]> inklist) > { > COSArray newInklist = new COSArray(); > for (float[] array : inklist) > { > COSArray newArray = new COSArray(); > newArray.setFloatArray(array); > newInklist.add(newArray); > } > annot.setItem(COSName.INKLIST, newInklist); > } > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

