@coolms/pdf-angular
v2.0.0-alpha.2
Published
The CoolMS PDF viewer for Angular. Registers itself with @coolms/document-viewer, so consumers dispatch through the viewer host rather than importing the component.
Downloads
23
Readme
@coolms/pdf-angular
The CoolMS PDF viewer for Angular.
Install
npm install @coolms/pdf-angular @coolms/document-viewer-angular @coolms/core-angularUse
Register it once, then dispatch through the viewer host rather than importing the component:
import { provideCoolmsPdf } from '@coolms/pdf-angular';
providers: [provideCoolmsPdf()]<cms-viewer-host mimeType="application/pdf" [url]="url" />Importing PdfViewerComponent directly works, but bypasses the registry that
lets a document surface show a format it was never told about.
Building it
Peers are consumed as BUILT output, never as sources: compiling a peer's
sources in would place them outside this package's rootDir (TS6059) and ship
a second copy of that peer to anyone installing both. Build in dependency
order:
document-engine -> core-angular -> editor-angular -> ui-angular
-> document-angular, document-viewer-angular,
image-editor-angular -> pdf-angularStatus
A pre-release: the shape is still moving and it carries no compatibility promise.
Licence
MIT.
