OnlyOffice Document Preview Assets
To use the OnlyOfficeViewer component, you need to place the static assets from ranuts/document into this directory.
Instructions:
- Clone the repository:
git clone https://github.com/ranuts/document.git - Copy the contents of the
publicdirectory from that repository into thispublic/documentdirectory. - 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.