Copy-paste standalone component alternative to ngx-extended-pdf-viewer (Angular).
Copy-paste simple-pdf-viewer.component.ts into your shared component directory of Angular.
Use it like:
<app-simple-pdf-viewer
(pdfLoaded)="false"
(pdfLoadingStarts)="true"
[filenameForDownload]="filename.pdf"
[httpHeaders]="headers"
[src]="url"
height="600px">
</app-simple-pdf-viewer>Where:
headersrequires type{ Authorization: string, uniqueId: string }urlrequires typestringfilename.pdfcan be added dynamically from api
- JWT Authorizied pdf
- Download
- Full Screen
