You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by chitgoks <ch...@gmail.com> on 2019/03/12 15:23:20 UTC

insert text at cursor annotation

hi. i am currently working on this kind of annotation

what kind of class do i use? PDAnnotationMarkup?

I figure it would be just like this

PDAnnotationMarkup pd = new PDAnnotationMarkup(PDAnnotation.SUB_TYPE_CARET);
pd.setLocation(rectangle).
pd.setPage(page);

but it does not show

this is the data i got

Re: insert text at cursor annotation

Posted by chitgoks <ch...@gmail.com>.
Never mind this

i got it to work. must have used an old version of pdfbox too because the
old version accepted this line

new PDAnnotationMarkup(PDAnnotation.SUB_TYPE_CARET);

whereas the new version accepts a COSDictionary as parameter. and i used
the COSDictionary to populate the properties

On Wed, Mar 13, 2019 at 1:55 AM Tilman Hausherr <TH...@t-online.de>
wrote:

> Am 12.03.2019 um 16:23 schrieb chitgoks:
> > hi. i am currently working on this kind of annotation
> >
> > what kind of class do i use? PDAnnotationMarkup?
> >
> > I figure it would be just like this
> >
> > PDAnnotationMarkup pd = new
> > PDAnnotationMarkup(PDAnnotation.SUB_TYPE_CARET);
> > pd.setLocation(rectangle).
> > pd.setPage(page);
> >
> > but it does not show
> >
> > this is the data i got
>
> Nothing to see here... upload to a sharehoster
>
> Also add the color.
>
> Tilman
>
>
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> > For additional commands, e-mail: users-help@pdfbox.apache.org
>
>
>

Re: insert text at cursor annotation

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 12.03.2019 um 16:23 schrieb chitgoks:
> hi. i am currently working on this kind of annotation
>
> what kind of class do i use? PDAnnotationMarkup?
>
> I figure it would be just like this
>
> PDAnnotationMarkup pd = new 
> PDAnnotationMarkup(PDAnnotation.SUB_TYPE_CARET);
> pd.setLocation(rectangle).
> pd.setPage(page);
>
> but it does not show
>
> this is the data i got

Nothing to see here... upload to a sharehoster

Also add the color.

Tilman



>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org