0.2.1 • Published 8 months ago
@kaptoai/kapto-hil v0.2.1
Kapto Document View Plugin for REVO
Install
npm i @kaptoai/kapto-hilUsage
import Plugin from '@kaptoai/kapto-hil';
<Plugin
documentId="{document id here}"
serviceUri="{service uri here}"
serviceKey="{service key here}"
userId="{user id here}"
tokenId="{token id here}"
/>;Props
serviceUri *
URL of the API to load data.
documentId *
ID of the document you want to visualize the data.
serviceKey *
Service key value used by API for further validation.
tokenId *
ID of the token obtained after doing authentication.
userId *
ID of the user obtained after doing authentication.
staticPath
Path to load static assets(in case you have one different from the default one(default is /static)).
workerPath
Path to load PDF worker(in case you have one different from the default one (default is /static/worker/pdf.worker.min.mjs)).
cMapPath
Path to load Characters Maps for PDF (in case you have one different from the default one (default is /static/cmaps)).