Releases: VadimDez/ng2-pdf-viewer
Releases Β· VadimDez/ng2-pdf-viewer
10.0.0
9.1.5
9.1.4
9.1.2
improvements
- [#925] - 9.1.1 version lacks pdfFindController.executeCommand
- [#927] - Fix search
- [#926] - Improve arrangement of annotations
Breaking Change
Since FindController.executeCommand
is deprecated, you should now use eventBus
to do search. Example:
@ViewChild(PdfViewerComponent) private pdfComponent: PdfViewerComponent;
search(stringToSearch: string) {
this.pdfComponent.eventBus.dispatch('find', {
query: stringToSearch, type: 'again', caseSensitive: false, findPrevious: undefined, highlightAll: true, phraseSearch: true
});
}
9.1.1
9.1.0
9.0.0
8.0.1
8.0.0
Changes
7.0.2
Improvements
- [#829] - feat: upgrade to pdfjs-dist 2.11.338
- [#834] - Give sane default to host
- [#805] - width of pdf page exceed the maximum width and got trimmed from the right side
- [#811] - .ng2-pdf-viewer-container not in parent container
- [#828] - can't now show digital signature PKCS#7
Breaking change (Since 7.0.0)
Now you need to specify how much space pdf-viewer
element should take by using CSS, so either set width
and height
, use flexbox
or use something like positioning
.
Example using height and width:
<pdf-viewer [src]="src" [original-size]="false" style="width: 400px; height: 500px"></pdf-viewer>
Example using absolute positioning to take entire page:
<pdf-viewer [src]="src" [original-size]="false" style="position: absolute; top: 0; right: 0; bottom: 0; left: 0"></pdf-viewer>