Skip to main content
Participating Frequently
Jun 29, 2022 8:36 PM UTC
Question

Generating an Annotation Unique Identifier

Hi, I'm attempting to generate highlight annotations with the annotations api, but I'm getting this error:

 

  1. code: "INVALID_ANNOTATION"
  2. message: "Invalid value of Annotations [\"Annotation id 3 is not having valid index. \",\"Annotation id 4 is not having valid index. \"]

 

How do I generate a valid identifier for an annotation?

 

Thank you!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Akshay Rohatgi
Adobe Employee
Adobe Employee
Jul 5, 2022 9:51 AM UTC

Hi @Robert22788616336o 

Thanks for using PDF Embed API. This error occurs when the annotation JSON input has invalid page number. index refers to page number here. For example, PDF has 5 pages and index >=5 is passed. It follows zero based indexing. Please try this out and let us know in case of concerns.

Translate