33
Views
2
Comments
Solved
[Adobe PDF Embed API] Does this component support the use of bounding boxes?
adobe-pdf-embed-api
Reactive icon
Forge asset by Matthew Matias
Application Type
Reactive

I would like to use bounding boxes on this component to highlight areas of the document from which information has been extracted. I have the bounding box data which tells me what part of the page the box should be on in JSON format (e.g. "boundingBox":[8.4137,1.5444,8.8424,1.5353,8.8424,1.8721,8.4137,1.863]). 


Is the use of bounding boxes supported by this component?

2021-02-09 03-17-43
Matthew Matias
Solution

Hi Roisin, 

In it's current state, this component does not support the use of bounding boxes or adding annotations programmatically. You can only view existing annotations. 

The Adobe API does support creating the annotations programmatically and this can be extended to incude these features. Maybe it is something I can include in a future release. But unfortunately i don't know how soon that will be.

API References can be found here:

https://opensource.adobe.com/pdfembed-sdk-docs/howtos_comments.html#annotations-api-overview

https://github.com/adobe/pdf-embed-api-samples/tree/master/More%20Samples/PDF%20Annotations%20APIs/CRUD%20APIs 


UserImage.jpg
Roisin Woolley

Hi Matthew,


Ok, thanks for the information and documentation!


Kind Regards,


Roisin

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.