https://github.com/daviddevgt/capacitor7-pdf-viewer
https://github.com/daviddevgt/capacitor7-pdf-viewer
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/daviddevgt/capacitor7-pdf-viewer
- Owner: DavidDevGt
- Created: 2025-02-01T19:15:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-01T22:00:46.000Z (over 1 year ago)
- Last Synced: 2025-02-01T23:18:14.552Z (over 1 year ago)
- Language: Java
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# capacitor7-pdf-viewer
Preview a PDF in a Capacitor App
## Install
```bash
npm install capacitor7-pdf-viewer
npx cap sync
```
## API
* [`echo(...)`](#echo)
* [`openPDF(...)`](#openpdf)
### echo(...)
```typescript
echo(options: { value: string; }) => Promise<{ value: string; }>
```
| Param | Type |
| ------------- | ------------------------------- |
| **`options`** | { value: string; } |
**Returns:** Promise<{ value: string; }>
--------------------
### openPDF(...)
```typescript
openPDF(options: { filePath: string; }) => Promise
```
| Param | Type |
| ------------- | ---------------------------------- |
| **`options`** | { filePath: string; } |
--------------------