Reputation: 1832
I have an Elm web application, in a form of SPA and I need to integrate pdf preview functionality.
How can I show pdf file inside Elm application and track that user actually scrolled it to the end?
Upvotes: 1
Views: 468
Reputation: 24399
Option 1 is to use a pre-existing pure Elm solution. Searching here https://package.elm-lang.org I find nothing.
Option 2 is to code something from scratch. You probably don't want to do this.
The last option, and it's the best one, is to use "custom elements" with a 3rd party javascript solution, like so:
<my-pdf-viewer>
complete with events.Upvotes: 7