intbot / ng2-pdfjs-viewer

An angular component for PDFJS and ViewerJS (Supports all versions of angular)
Apache License 2.0
225 stars 113 forks source link

Programmatically navigate to bookmark or Annotation #184

Closed SpadaSimone closed 2 years ago

SpadaSimone commented 2 years ago

Hi! Is it possible to programmaticly navigate to a certain bookmark or annotation ?

codehippie1 commented 2 years ago

It is possible to go to named destination using parameters provided. I am afraid for bookmarks, you would have to use underlying PDFApplication object(It is exposed for convenience)

codehippie1 commented 2 years ago

You may look into pdfjs documentation to see exposed methods on PDFViewerApplication and PDFViewerApplicationOptions. Stack overflow might be where to start