Skip to main content
Participating Frequently
June 29, 2022
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
July 5, 2022

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