bungenix-viewer
v1.0.8
Published
Viewer for PDF, DOCX, HTML, PNG documents, used by BungeniX-UI
Downloads
7
Readme
BungeniX-Viewer
Viewer for PDF, DOCX, HTML, PNG documents, used by BungeniX-UI
Install
npm install --save bungenix-viewer
Usage
import BungeniXViewer from 'bungenix-viewer';
class Example extends Component {
render () {
const attLink = "http://domain/file.pdf"; // url to online pdf document
const {doc} = this.props ; // AKN document as provided by bungenix-ui
const formatUc = "PDF" ; // PDF, PNG, DOCX, XML
return (
<BungeniXViewer attLink={attLink} doc={doc} format={formatUc} />
)
}
}
License
LGPL-3.0 © kohsah