All Projects → TeamHive → pdf-viewer

TeamHive / pdf-viewer

Licence: MIT License
PDF viewer web component built in StencilJS. Reusable in Angular, Ionic, React, Vue.JS, etc.

Programming Languages

typescript
32286 projects
HTML
75241 projects
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pdf-viewer

block-photos
A photos app built with Ionic and Blockstack as backend.
Stars: ✭ 24 (-63.08%)
Mutual labels:  ionic, stencil, stenciljs
stencil-shimmer
StencilJS component for adding shimmer UI effect to your applications.
Stars: ✭ 14 (-78.46%)
Mutual labels:  ionic, stenciljs, stenciljs-components
ionic-custom-components
🌈 Ionic Tutorial: Mastering Web Components in Ionic Framework. This repo is an Ionic project showcasing Angular custom components and Stencil custom web components.
Stars: ✭ 30 (-53.85%)
Mutual labels:  ionic, stencil, stenciljs
Stencil
A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
Stars: ✭ 9,880 (+15100%)
Mutual labels:  ionic, stencil, stenciljs
Ionic Framework
A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
Stars: ✭ 45,802 (+70364.62%)
Mutual labels:  ionic, stencil, stenciljs
capacitor-site
Capacitor website
Stars: ✭ 0 (-100%)
Mutual labels:  ionic, stencil, stenciljs
gatsby-remark-highlight-code
Adds stylish cards and syntax highlighting to code blocks in markdown files
Stars: ✭ 63 (-3.08%)
Mutual labels:  stencil, stenciljs
stencil-boilerplate
A Stencil app boilerplate including routing, Redux etc.
Stars: ✭ 51 (-21.54%)
Mutual labels:  stencil, stenciljs
stencil-realworld-app
An example SPA written with Stencil
Stars: ✭ 56 (-13.85%)
Mutual labels:  stencil, stenciljs
Deckdeckgo
The web open source editor for presentations
Stars: ✭ 1,117 (+1618.46%)
Mutual labels:  ionic, stencil
web-photo-filter
A Web Component to apply Instagram-like WebGL filters to photos
Stars: ✭ 105 (+61.54%)
Mutual labels:  stencil, stenciljs
app-starter
Angular mono-repo (Ionic/Capacitor/StencilJS/Web Component) app starter for supporting cross platform apps.
Stars: ✭ 75 (+15.38%)
Mutual labels:  ionic, stenciljs
Ionicons
Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
Stars: ✭ 15,802 (+24210.77%)
Mutual labels:  ionic, stenciljs
bulmil
💄 A agnostic UI components library based on Web Components, made with Bulma & Stencil.
Stars: ✭ 121 (+86.15%)
Mutual labels:  stenciljs, stenciljs-components
generator-stencil
Scaffolding tool 🔨 for Stencil js applications
Stars: ✭ 16 (-75.38%)
Mutual labels:  stencil, stenciljs
solar-components
Web Components Implementation of Solar Design System
Stars: ✭ 16 (-75.38%)
Mutual labels:  stencil, stenciljs
Atoms
Atoms for Blaze UI
Stars: ✭ 1,505 (+2215.38%)
Mutual labels:  stencil, stenciljs
nuxt-stencil
Easy Stencil.js component library integration with Nuxt.js.
Stars: ✭ 16 (-75.38%)
Mutual labels:  stencil, stenciljs
IonicMadrid
Charlas Ionic Madrid
Stars: ✭ 14 (-78.46%)
Mutual labels:  ionic, stencil
stencil-tailwind-plugin
Plugin for using tailwindcss with StencilJS
Stars: ✭ 17 (-73.85%)
Mutual labels:  stencil, stenciljs

Built With Stencil

Hive PDF Viewer

This web component allows you to add PDF rendering support to your web applications.

Features

  • Rendering PDFs on web (Angular, Ionic, React, Stencil, etc.)
  • Search
  • Fit to Page / Fit to Width
  • Side panel for quick thumbnail navigation

Installation

  • npm i @teamhive/pdf-viewer

Usage

<hive-pdf-viewer src="http://www.mydomain.com/example.pdf"></hive-pdf-viewer>

Somewhere in your project (e.g. main.ts):

import { defineCustomElements } from '@teamhive/pdf-viewer/dist/loader';
defineCustomElements(window);

Angular

Add viewer assets to angular.json assets block:

{
    "projects": {
        "app": {
            "architect": {
                "build": {
                    "options": {
                        "assets": [
                            {
                                "glob": "**/*",
                                "input": "node_modules/@teamhive/pdf-viewer/dist/pdf-viewer/pdf-viewer-assets",
                                "output": "pdf-viewer-assets"
                            }

Follow the Stencil JS Framework Integration guide for more info.

Properties

Property Default Description
src The PDF web address location (http, https)
page 1 The default page index.
enableToolbar true If the toolbar is available for display.
enableSideDrawer true If the side drawer UI (and button) is available for display.
enableSearch true If the document can be searched through. Hides the button when false.

Events

Event Description
linkClick(href: string) Emits the href clicked when it's not an internal document annotation.
pageChange(currentPage: number) Emits the current page number when the current page changes.

Contributors

Sean Bannigan Sean Perkins Justin True
Sean Bannigan Sean Perkins Justin True
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].