It seems that setting the "Name" entry for the annotation (setName) makes
Acrobat behave better. Evidently Acrobat is determined in finding out the
icon representing the rubber stamp and only then allowing for the AP to
override that? (i.e. not specifying which rubber stamp throws off Acrobat's
logic).

Constantine

On Sat, Jun 9, 2018 at 9:36 AM Tilman Hausherr <[email protected]>
wrote:

> My theory on the rubber stamp annotation is that Adobe tries to
> reconstruct the AP from the non AP data but it can't because the name
> isn't one that Adobe knows.
>
> On the square annotation I'd need to see the PDF. That one is rather
> easy, it just needs the rectangle and the width and the color.
>
> Tilman
>
> Am 08.06.2018 um 16:31 schrieb Constantine Dokolas:
> > I'm trying to add a custom annotation (i.e. with a custom appearance
> stream
> > that defines exactly what I want to show) to a page. I'm confused on
> which
> > PDAnnotation class to use and I can't find anything related in the spec.
> > I've used RubberStamp and SquareCircle (as "Square") and I get to see
> what
> > I want but, to add to my confusion, any kind of edit from within Acrobat
> > Reader destroys the rendering of the annotation (turns it to a box with
> an
> > X joining the corners). What's going on?
> >
> > Thanks in advance,
> > Constantine
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> --
There is a computer disease that anybody who works with computers knows
about. It's a very serious disease and it interferes completely with the
work. The trouble with computers is that you 'play' with them!
- Richard P. Feynman

Reply via email to