[Web Previewer] Struggling to show PDF at specific page

Forge Component
(17)
Published on 2018-11-19 by Rui Mendes
17 votes
Published on 2018-11-19 by Rui Mendes

Hi

I've been using this component successfully, to display PDFs on a screen.

I want to show the pdf at a specific screen and am struggling to do so.

I initially tried using the #page=3 within the link for the PDF and this did not work.

I have then tried editing the iFrame in the component, using this as discussed in the link below, however this doesn't seem to work either:

<iframe id="iframe1" src="http://docs.google.com/gview?url=http://yourpdf&embedded=true" onload="javascript:this.contentWindow.location.hash=':0.page.20';">

https://stackoverflow.com/questions/9193144/how-to-open-specific-page-on-googles-docs-viewer 

Has anyone attempted this / got it working?

Thanks

Solution

I've ended up moving to the component mentioned here and this seems to work:


http://caiosm1005.outsystemscloud.com/SimpleViewerDemo/

Solution