PDF Embed API - Annotation & Search

New Here ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

Hi Adobe Forum,

We have a unique request, not sure if it's possible, but would appreciate some guidance if it is.

1. When adding an annotation, is it possible to get the selected text from that annotation, not only the bounding boxes?

2. Is it possible to programatticaly do a text search in a document?

3. If yes, is it possible to limit search to the current page you are on, and not the complete document?

 

Any help in this regard would be greatly appreciated!

 

PS: Love what the people at Adobe are doing!!!

Views

335

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

I'll respond to the questions in order...

  1. Yes. You can hook into the FilePreviewEvents.PREVIEW_SELECTION_END callback and track what text was selected. Then if a new annotation is created, you can compare the rectangles and see if the selected text was annotated.
  2. No... but in other posts it's been stated that it's coming.
  3. Not sure. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 10, 2020 Nov 10, 2020

Copy link to clipboard

Copied

LATEST

by

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources