# @embedpdf/viewer-angular A complete PDF viewer as an Angular component: toolbars, annotations, forms and signatures, with the PDF engine built in. ## Quick start This guide adds the viewer to your app, then makes it yours in four small steps. Each step works on its own, so stop whenever it's enough. ### 1. Install ```sh npm install @embedpdf/viewer-angular ``` The package brings everything: the toolbar and panels, the PDF engine, and its WebAssembly, which your build serves from your own site. ### 2. Show a PDF Give the viewer a document and a height: **`first.ts`** ```ts import { Component } from '@angular/core'; import { EpdfPdfViewer } from '@embedpdf/viewer-angular'; @Component({ selector: 'app-root', imports: [EpdfPdfViewer], template: ``, }) export class App {} ``` The viewer fills the box you give it, so it needs a height: a fixed one, `100vh`, or the rest of a flex layout. People can now scroll, zoom, search, select text, annotate, fill in forms, sign and download. ## All features Most features are on from the start; measuring, redaction, building forms and snapshots wait until you turn them on. Turn features on or off with `features`, by the name in the first column: ```js { features: { measurement: true, redaction: true, comments: false } } ``` | Feature | What people can do | On from the start | Settings | | :------------ | :------------------------------------------------------------------------------------------- | :---------------- | :---------------------------------------------------------------------------------------------------------- | | `annotations` | Highlight, underline and strike out text; draw; add notes, text boxes and callouts | yes | [Annotations](https://www.embedpdf.com/docs/viewer/angular/features/annotations) | | `shapes` | Draw rectangles, circles, lines, arrows and polygons | yes | [Annotations](https://www.embedpdf.com/docs/viewer/angular/features/annotations#the-tools) | | `comments` | Comment on annotations and reply, in a panel with every thread | yes | [Annotations](https://www.embedpdf.com/docs/viewer/angular/features/annotations#comments) | | `stamps` | Place stamps: the standard ones, their own, or images | yes | [Annotations](https://www.embedpdf.com/docs/viewer/angular/features/annotations#stamps) | | `signatures` | Draw, type or upload a signature; sign fields; check signatures | yes | [Forms & signatures](https://www.embedpdf.com/docs/viewer/angular/features/forms-and-signatures#signatures) | | `forms` | Fill in forms; build them in the Form mode | Filling only | [Forms & signatures](https://www.embedpdf.com/docs/viewer/angular/features/forms-and-signatures) | | `redaction` | Mark text and areas, then remove them from the file for good | no | [Annotations](https://www.embedpdf.com/docs/viewer/angular/features/annotations#redaction) | | `measurement` | Measure distances, perimeters and areas at the drawing's scale | no | [Annotations](https://www.embedpdf.com/docs/viewer/angular/features/annotations#measurements) | | `pages` | Rotate, move, insert, duplicate and delete pages in the thumbnails panel, each step undoable | yes | [Panels](https://www.embedpdf.com/docs/viewer/angular/customize/panels#organize-pages) | | `attachments` | See, save, attach and remove files inside the PDF | yes | [Panels](https://www.embedpdf.com/docs/viewer/angular/customize/panels#the-attachments) | | `search` | Find text, with every match highlighted and listed | yes | [`plugins.search`](https://www.embedpdf.com/docs/headless/angular/text/search#settings) | | `text` | Select and copy text | yes | [`plugins.selection`](https://www.embedpdf.com/docs/headless/angular/text/selection#settings) | | `snapshots` | Copy or save part of a page as a picture | no | [Documents](https://www.embedpdf.com/docs/viewer/angular/documents#take-a-snapshot) | | `thumbnails` | A picture of every page, to jump around | yes | [Panels](https://www.embedpdf.com/docs/viewer/angular/customize/panels) | | `outline` | The document's table of contents | yes | [Panels](https://www.embedpdf.com/docs/viewer/angular/customize/panels) | | `documents` | Open other files (with the local engine), download, print, several documents in tabs | yes | [Documents](https://www.embedpdf.com/docs/viewer/angular/documents) | ## Documentation - [Quick start](https://www.embedpdf.com/docs/viewer/angular/quick-start): Install the viewer, show a PDF, give it your color and your own button, put your own component in the toolbar, and talk to it from code. - [Setup](https://www.embedpdf.com/docs/viewer/angular/setup): Sizing, server-side rendering, the engine, and several viewers on a page. - [Layout](https://www.embedpdf.com/docs/viewer/angular/customize/layout): Toolbars at the bottom, on the side, floating, or several at once. - [Theming](https://www.embedpdf.com/docs/viewer/angular/customize/theming): Your colors, light and dark, and the look of every part. ## License Apache-2.0