cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically navigate document preview?

warrenzhai1
Champ in-the-making
Champ in-the-making

I'm developing a custom navigation to navigate to different pages of a PDF preview pane using JavaScript.  I can use Dojo to get the input control and change the value easily but firing the change event doesn't change the navigation page.  Do you know what's the best way for me to do this either using Alfresco.WebPreview or some other control?

1 REPLY 1

mrks_js1
Star Contributor
Star Contributor

i believe you can already link to specific pages in a preview in share/pdf.js and there is an aikau method for scrolling, see:

JSDoc: Module: alfresco/preview/PdfJs/PdfJs 

hth