MCPcopy Index your code
hub / github.com/webodf/ViewerJS

github.com/webodf/ViewerJS @v0.5.9 sqlite

repository ↗ · DeepWiki ↗ · release v0.5.9 ↗
45 symbols 97 edges 6 files 2 documented · 4%
README

ViewerJS

ViewerJS combines a number of excellent open source tools that are built on HTML and javascript. ViewerJS was funded by NLnet foundation and developed by KO GmbH.

The heavy lifting in ViewerJS is done by these awesome projects:

WebODF

WebODF is a JavaScript library created by KO GmbH. It was started by Jos van den Oever at KO and is now developed by a growing team including external collaborators. It makes it easy to add Open Document Format (ODF) support to your website and to your mobile or desktop applications. It uses HTML and CSS to display ODF documents.

PDF.js

PDF.js is a library created by Andreas Gal and others at Mozilla Labs. It is an HTML5 technology experiment that explores building a faithful and efficient Portable Document Format (PDF) renderer without native code assistance.

Examples and more

You can find additional information, some usage guides, and live examples at the project homepage.

Building

ViewerJS uses cmake. Just follow these steps:

git clone git@github.com:kogmbh/ViewerJS.git
mkdir build
cd build
cmake ../ViewerJS
make

You will find the following two products in the build directory if everything goes well: - viewerjs-{x.y.z}.zip - viewerjs-wordpress-{x.y.z}.zip

... where {x.y.z} denotes the version.

License

ViewerJS is a Free Software project. All code is available under the AGPL.

If you are interested in using ViewerJS in your commercial product (and do not want to disclose your sources / obey AGPL), contact KO GmbH for a commercial license.

Core symbols most depended-on inside this repo

setButtonClickHandler
called by 10
viewer.js
parseScale
called by 7
viewer.js
loadScript
called by 5
PDFViewerPlugin.js
setRenderingStatus
called by 5
PDFViewerPlugin.js
delayedRefresh
called by 3
viewer.js
hideToolbars
called by 3
viewer.js
getRenderingStatus
called by 3
PDFViewerPlugin.js
doEstimateTypeByFileExtension
called by 2
PluginLoader.js

Shape

Function 45

Languages

TypeScript100%

Modules by API surface

viewer.js23 symbols
PDFViewerPlugin.js13 symbols
PluginLoader.js5 symbols
ODFViewerPlugin.js3 symbols
tools/replaceByFileContents.js1 symbols

For agents

$ claude mcp add ViewerJS \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact