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 files are downloaded from Regula servers, but you can set your own sources. To do this, perform the following steps:
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.