https://github.com/marianfoo/ui5-cc-pdfviewer
The PDFViewer is a custom UI5 control that enables you to view PDF's by using a base64 data uri instead of a file URL
https://github.com/marianfoo/ui5-cc-pdfviewer
Last synced: about 1 year ago
JSON representation
The PDFViewer is a custom UI5 control that enables you to view PDF's by using a base64 data uri instead of a file URL
- Host: GitHub
- URL: https://github.com/marianfoo/ui5-cc-pdfviewer
- Owner: marianfoo
- License: mit
- Created: 2023-04-28T08:55:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T14:01:39.000Z (about 3 years ago)
- Last Synced: 2025-03-17T00:23:46.486Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://marianfoo.github.io/ui5-cc-pdfviewer/
- Size: 87.2 MB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UI5Lab Library PDFViewer
**This is a fork of https://github.com/lemaiwo/UI5LabLibraryPDFViewer!**
The PDFViewer is a custom UI5 control that enables you to view PDF's by using a base64 data uri instead of a file URL. This can be useful in case you want to preview a PDF that you want to upload without uploading it.
## Demo
In folder `test/pdfviewer`, execute `npm install` and upload a PDF file. Then run `npm start`.
## Usage
### Include the library in your project
1. Install Control
```bash
npm install "ui5-cc-pdfviewer"
```
2. Configure the manifest.json
```json
"resourceRoots": {
"cc.pdfviewer": "./thirdparty/cc/pdfviewer",
"pdfjs-dist": "./thirdparty/cc/pdfviewer/pdfjs-dist/build"
},
```
3. Use the PDF Control
```xml
```