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