You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this line, there is a id.generation, which I guess to check whether there is a property called generation in id, but there is a case that generation == 0, and in this case the promise will never finish since the resolve() is not invoked.
The details of my case is:
I have a PDF with 4 annotations, and I confirmed the annotations by getAnnotations() and the identities of the 4 annotations are:
The string type ids are shared by multiple annotations and there would be an error while AnnotationFactory.write() is called. So I tried the object_id and the promise does not return. I did some investigation and found the reason is the id.generation.
I don't want to fork my own version of this lib, is there any other ways to delete the annotations in my PDF before the new release with the fix?
The text was updated successfully, but these errors were encountered:
pdfAnnotate/src/annotation.ts
Line 536 in b5e5bc2
In this line, there is a
id.generation
, which I guess to check whether there is a property calledgeneration
inid
, but there is a case thatgeneration == 0
, and in this case the promise will never finish since theresolve()
is not invoked.The details of my case is:
I have a PDF with 4 annotations, and I confirmed the annotations by
getAnnotations()
and the identities of the 4 annotations are:The string type ids are shared by multiple annotations and there would be an error while
AnnotationFactory.write()
is called. So I tried theobject_id
and the promise does not return. I did some investigation and found the reason is theid.generation
.I don't want to fork my own version of this lib, is there any other ways to delete the annotations in my PDF before the new release with the fix?
The text was updated successfully, but these errors were encountered: