How do I programmatically navigate document preview?

cancel
Showing results for 
Search instead for 
Did you mean: 
warrenzhai1
Member II

How do I programmatically navigate document preview?

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
mrks_js1
Established Member II

Re: How do I programmatically navigate document preview?

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