Angular PDF viewer showcase. Running on Angular 18.2.12 and ngx-extended-pdf-viewer 22.0.0-alpha.10. Choose a version:

The PDF viewer always renders the PDF file as a canvas. Often, it also generates additional layers on top of the canvas:

  • The text layer allows you to mark and copy text. It's also the base of the search engine. You can render fast if you set [textLayer]="false", but if you do, your users can't use the find bar.
  • Interactive forms are part of the annotation layer.
  • The editors of this PDF viewer use another layer to store you drawings and free-text.

You don't have to think much about these layers most of the time. However, these layers are HTML divs, and you can manipulate them.

<ngx-extended-pdf-viewer
  [src]="'./assets/pdfs/The Public Domain - Enclosing the Commons of the Mind.pdf'"
  (annotationLayerRendered)="onAnnotationLayerRendered($event)"
  [zoom]="'auto'">
</ngx-extended-pdf-viewer>
Copyright hint: the e-book has been published by James Boyle under a CC BY-NC-SA 3.0 on www.thepublicdomain.org.
File name:

-

File size:

-

Title:

-

Author:

-

Subject:

-

Keywords:

-

Creation Date:

-

Modification Date:

-

Creator:

-

PDF Producer:

-

PDF Version:

-

Page Count:

-

Page Size:

-

Fast Web View:

-

Choose an option Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.
Aim for 1-2 sentences that describe the subject, setting, or actions.
This is used for ornamental images, like borders or watermarks.
Preparing document for printing…
0%