vue-pdf-embed icon indicating copy to clipboard operation
vue-pdf-embed copied to clipboard

Possibility of adding Slots.

Open dougieled opened this issue 2 years ago • 1 comments

Wondering is it possible to add slots into the vue-pdf-embed.vue. I still need to test out which would be best but possibly an option of having a slot inside and outside of the v-for.

Currently using a wrapper over the top of the vue-pdf-embed which highlights text based on the position of text using textract positioning geometry. However only one page will work at a time. Would possibly be more straight forward to use a slot in order to import my component to sit on top of each page and i can pass each texttract options based on each page

dougieled avatar Sep 01 '22 11:09 dougieled

Hi dougieled,

Could you possibly share your code on how you are tackling this? I have a use case and am curious.

noah1234j avatar Sep 25 '22 16:09 noah1234j

Hi @dougieled @noah1234j ,

There is no slots available right now, could you describe the possible use cases for them?

hrynko avatar Feb 09 '23 13:02 hrynko

Slots were added in #157 and are available in v1.2.0

hrynko avatar Sep 27 '23 10:09 hrynko