Package Resources
For proper operation, Document Reader Web Components require several package files:
- WASM (
ProcMgr.wasm
,ProcMgr.data
) - worker (
ProcMgr.worker.js
)
By default, these dependencies are automatically resolved by CDN (configured by Regula). This approach ensures the performance, browser caching, and reliability.
Warning
It's not recommended to change the default resources' location and distribution behavior. But you can set your own package sources if needed. Note that in that case, the resources' availability, updating, and network performance is completely up to you.
1. Download the required files from our server to local machine, using the link from the window.RegulaDocumentSDK.workerPath
field.
2. Upload all files (ProcMgr.worker.js
, ProcMgr.wasm
, ProcMgr.data
) to your own location.
Warning
The files must be located in the same directory and have the same names as called before.
3. Change the address in workerPath
parameter to your own in windows.RegulaDocumentSDK
:
window.RegulaDocumentSDK.workerPath = 'https://<CUSTOM_PATH_TO_WASM_AND_WORKER_FILES_PATH>';
Info
To decrease file size, on your server you can apply the desired compression method.