An open API service indexing awesome lists of open source software.

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

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







```