npm ng2-pdf-viewer 3.0.8

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

Features

  • [#63] - How to scroll to page?
  • [#233] - Bookmark option

Features

Now both pdfViewer and pdfLinkService are public.

You can now scroll to a page from code:

// define view child
@ViewChild(PdfViewerComponent) private pdfComponent: PdfViewerComponent;

// ...

scrollToPage(page: number) {
  this.pdfComponent.pdfViewer.scrollPageIntoView({
    pageNumber: page
  });
}

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

NewReleases is sending notifications on new releases.