Skip to main content
Known Participant
July 6, 2021
Question

Encountering Several bugs with the Embed Api

  • July 6, 2021
  • 3 replies
  • 4159 views

I'm using the Embed Api and getting hung up on a few bugs:

Text Selection Tools

The text selection tools only show up intermittently

  • A lot of the time when text is selected the tools never show up in order to make a highlight I attached a video showing the behavior

Expectations:

I would expect the selection tools show up after selecting text all the time

 

Annotation Manager:

getAnnotations and removeAnnotationsFromPDF fail with message: "Invalid time value"

It seems that there are particular annotations that are corrupting things, but I don't see why the entire operation should fail.

 

Expectations

- I would expect that getAnnotations would only return valid annotations 

- I would expect that removeAnnotationsFromPDF to remove all annotations regardless if some have corrupt data or not

 

3 replies

New Participant
January 27, 2025

Any update ? Add annotation is still failing for a PDF which already has annotations :

 

 

New Participant
June 9, 2022

Is there any update on this. I am trying to annotate a PDF which already has annotations which results in:

{
     code: "FAIL",
      message: "Invalid time value"
}
Adobe Employee
July 12, 2021

Sorry to hear that you're facing these issues. Would be super helpful if you could share the following information.

 

1. Text Selection Tools: Do you see the issue always or intermittently? Is it specific to the PDF file used in the recording? Would it be possible to share the PDF file so we can take a look.

 

2. Annotation Manager: Can you share any such example annotation data which shows this error? Or the PDF file containing such annotation data.

Known Participant
July 12, 2021

Sure thing.  I've attached two documents named accordingly.

 

The text selection happens intermittently on many pdfs, but this one it seems to happen more consistently.

 

The malformed annotations pdf, I tried to remove all annotations with Adobe Acrobat Pro, however there are several annotations that just continue to re-appear.  Either way, one of them has a malformed date that seems to break several of the embed annotation api calls.

 

Thanks for the help.

 

Colter

Adobe Employee
July 15, 2021

Hello,

Wanted to share the following update:

 

1. Text Selection Tools: Unfortunately, we haven't been able to reproduce the first issue. Could you share some more details, like the OS and browser versions where you see the issue. Is there any hosted site with the PDF which you can share with us so we can try reproducing the issue on that website. 

 

2. Annotation Manager: The PDF contains a couple of annotations with invalid date format which is causing the annotation APIs to fail. We have taken note of the issue that few corrupt annotations should not fail the entire operation. We have added this to our product backlog and will consider for future enhancements. Thanks for the feedback.

I can think of a workaround where you can set the configuration variable includePDFAnnotations: false. In this case, all annotation APIs will work as expected but you won't be able to access any of the existing saved annotations in the PDF. For more details, please see the section Comments and Markup -> Annotations API overview in the documentation.

 

Hope this helps. Thanks!