README.md 990 Bytes

OnlyOffice Document Preview Assets

To use the OnlyOfficeViewer component, you need to place the static assets from ranuts/document into this directory.

Instructions:

  1. Clone the repository: git clone https://github.com/ranuts/document.git
  2. Copy the contents of the public directory from that repository into this public/document directory.
  3. Ensure the following structure exists:
    • public/document/index.html (this is the entry point)
    • public/document/sdkjs/
    • public/document/fonts/
    • public/document/wasm/
    • (and other assets)

Once these files are in place, the OnlyOfficeViewer.vue component will be able to load and display Word and PowerPoint files locally without any external dependencies.

Why local?

  • Privacy: No document data leaves your server/local environment.
  • Performance: Assets are served from your own origin.
  • Reliability: No dependency on external hosted versions.