
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
@teamhive/pdf-viewer
Advanced tools
This web component allows you to add PDF rendering support to your web applications.
npm i @teamhive/pdf-viewer
<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);
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.
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. |
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. |
Sean Bannigan | Sean Perkins | Justin True |
FAQs
PDF Viewer Web Component. Built with stencil and pdfjs.
The npm package @teamhive/pdf-viewer receives a total of 113 weekly downloads. As such, @teamhive/pdf-viewer popularity was classified as not popular.
We found that @teamhive/pdf-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.