A clean, single-toolbar document reader modeled on macOS Preview. Passes #toolbar=0&navpanes=0 to suppress the browser’s duplicate dark PDF bar so page navigation, zoom, open-in-tab, and download live in one consistent Ply bar.
Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
Step between pages 1 and 2, scale zoom (click the percentage to reset to 100%), or download the PDF. Current state: page 1 at 100%.
<ply-pdf-viewer src="/assets/pdf/ply-note.pdf" [pageCount]="2" title="Ply Design System — Pro Spec.pdf" [(page)]="page" [(zoom)]="zoom"></ply-pdf-viewer>
TypeScript
import { Component, signal } from '@angular/core';
// Install: npx ply-ui-cli add pdf-viewer
// Paths are relative to aliases.components (default: src/app/components)
import { PdfViewerComponent } from './pdf-viewer/pdf-viewer.component';
@Component({
selector: 'app-pdf-viewer-example',
imports: [
PdfViewerComponent
],
template: `...`
})
export class PdfViewerExampleComponent {
page = signal(1);
zoom = signal(1);
}Install
npx ply-ui-cli add pdf-viewer
npx ply-ui-cli add pdf-viewer
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-ui-cli add pdf-viewer
// Paths are relative to aliases.components (default: src/app/components)
import { PdfViewerComponent } from './pdf-viewer/pdf-viewer.component';
@Component({
selector: 'app-your-component',
imports: [
PdfViewerComponent
],
template: `...`
})
export class YourComponent {} API for pdf-viewer — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
ply-pdf-viewer | class | string | '' | Extra host classes merged via `cn()`. |
ply-pdf-viewer | src | string | '' | PDF URL. Empty shows the empty state. |
ply-pdf-viewer | title | unknown | 'Document' | Document name shown in the reader bar. |
ply-pdf-viewer | pageCount | number | 1 | Known page count. Previous and next stay inside 1…pageCount. |
ply-pdf-viewer | page | number | 1 | Current page, starting at 1. |
ply-pdf-viewer | zoom | number | 1 | Zoom multiplier from 0.75 to 1.75 (default `1` = 100%). |
Content