Giter Site home page Giter Site logo

mshanak / nativescript-pdf-view Goto Github PK

View Code? Open in Web Editor NEW

This project forked from merott/nativescript-pdf-view

0.0 2.0 0.0 1.42 MB

A basic PDF viewer plugin for NativeScript, to display PDF documents on iOS and Android.

License: Other

TypeScript 100.00%

nativescript-pdf-view's Introduction

nativescript-pdf-view

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

Check out the demo folder for a sample usage.

Angular 2

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

  1. Make sure to import nativescript-pdf-view somewhere in your code, e.g:
import 'nativescript-pdf-view';
  1. Include the tag in your template:
<PDFView [src]="src" (load)="onLoad()"></PDFView>

Try the Demo

To try the demo, cd into the demo folder, and run the following commands:

npm install

# iOS
tns platform add ios
tns run ios

# Android
tns platform add android
tns run android

nativescript-pdf-view's People

Contributors

merott avatar mshanak avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.