Skip to main content
Participant
April 13, 2025
Question

Is it possible to enable enableFilePreviewEvents and enableAnnotationEvents at the same time?

  • April 13, 2025
  • 0 replies
  • 86 views

I am using sveltekit + tauri and would like to have a pdf viewer. I tried the one from Adobe and it seems to have the features I needed, but it seems that I cannot use those features at the same time. I need to be able for uses to highlight (annotate) and also get the text they are highlighting.

 

EnableFilePreviewEvents, specifically the `PREVIEW_SELECTION_END` event, allow me to get the text the user just highlighted. But if I set EnableFilePreviewEvents to True, the user cannot annotate (highlight). It will show `Feature can't be enabled or disabled`.

 

I need the ability to highlight as usuall, but also get the content of what is being highlighted.