Socket
Book a DemoInstallSign in
Socket

nativescript-pdf-viewer

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-pdf-viewer

A NativeScript plugin to display PDF files on iOS and Android, with support for Xcode 8

latest
Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
18
-62.5%
Maintainers
3
Weekly downloads
 
Created
Source

nativescript-pdf-viewer

This is a very basic PDF view implementation that does only one thing, and that is to display PDF files. It conveniently uses the iOS UIWebView, but for Android it uses AndroidPdfViewer.

This plugin does the bare minimum required to render the PDF, no configuration options, and no error handling have been built yet. I welcome all Pull Requests!

Usage

Demo

Check out the demo folder for a sample usage.

Angular 2

If you're using the plugin with Angular 2, the plugin automatically registers PDFViewer as a valid tag for Angular templates. Usage is simple:

  • Make sure to import nativescript-pdf-viewer somewhere in your code, e.g:
import 'nativescript-pdf-viewer';
  • Include the tag in your template:
<PDFViewer [src]="localPath"></PDFViewer>

Try the Demo

To try the demo run the following commands:

npm run setup
npm run demo.ios
npm run demo.android

Keywords

NativeScript

FAQs

Package last updated on 17 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts