npm ng2-pdf-viewer 9.1.2

latest releases: 10.3.0, 10.2.2, 10.2.1...
2 years ago

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
  });
}

Don't miss a new ng2-pdf-viewer release

NewReleases is sending notifications on new releases.