Skip to content

Added custom renderer for entire layer - #1215

Open
ishan-ironclad wants to merge 1 commit into
wojtekmaj:mainfrom
ishan-ironclad:ishan-ironclad/customTextLayerRenderer
Open

Added custom renderer for entire layer#1215
ishan-ironclad wants to merge 1 commit into
wojtekmaj:mainfrom
ishan-ironclad:ishan-ironclad/customTextLayerRenderer

Conversation

@ishan-ironclad

Copy link
Copy Markdown

Hi! I had to add a prop to custom-render all text-items at once, rather than one at a time for a search-highlighting use case at the organization I work for. We are looking to search for arbitrary-length phrases on a PDF page, and highlight them if they exist. The main problem being solved here is that longer items of text may be broken up across textLayer items, resulting in many search hits on the document being missed. Seems like this could be a popular use case of this API, so I think it'd be worth it to get this in. Let me know if there's any documentation or testing I'd need to add to get this contribution in.
Thanks!

@wojtekmaj
wojtekmaj force-pushed the main branch 2 times, most recently from 36a36d4 to e249af6 Compare February 12, 2023 19:18
@wojtekmaj
wojtekmaj force-pushed the main branch 5 times, most recently from 26a73cc to 33ea5de Compare March 8, 2023 12:49
@wojtekmaj
wojtekmaj force-pushed the main branch 2 times, most recently from f5a9fd6 to 9243e45 Compare April 17, 2023 20:39
@wojtekmaj
wojtekmaj force-pushed the main branch 2 times, most recently from fbeabf1 to 240150a Compare May 8, 2023 13:01
@taneliang
taneliang force-pushed the ishan-ironclad/customTextLayerRenderer branch from 4809c6b to 8bc03af Compare July 25, 2023 22:00
@wojtekmaj

Copy link
Copy Markdown
Owner

Hmmm I'm not against it, think it could be a good addition, but yeah, we'll need docs and tests before this can be merged. I can't take care of this right now.

In the meantime, have a look here: #614 (comment)

@sneakysquidd

Copy link
Copy Markdown

Any updates on this? I am very interested in being able to use this functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants