3 ms·
It wraps a normal Javascript library into a React component, which is very useful for many web applications. The license is probably cheaper than having a fron
by jeroenhd 4y ago
It wraps a normal Javascript library into a React component, which is very useful for many web applications.
The license is probably cheaper than having a front end dev invest time into making this embedding work well. Well-built React components can be a great business if you can entice enough people to use them and provide enough support.
In most desktop applications, you can probably get away with an iframe to do much of the same thing if you want an alternative. Just put up a static HTML file on your web server that loads pdf.js and takes a path to a PDF file to render and you're pretty much done. If you want to work around the annoyances iframes cause, this library is probably along the lines of what you'd build.