Automatic Page Scroll in PDF

Asked by vineet joshi

Hi all,

I am using Xibo.1.2 .

Is this possible to make PDF scroll its pages automatically (say after every 15 secs).

I am using following code in Embedded tab to access the PDF .
<iframe src="http://192.168.2.135/TEST.pdf#width="100%" height="100%"></iframe> .

Also,the PDF is recreated after every 2 min by a batch file running in background.

Please Help ...Its

Regards

Vineet

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

Sorry, this is not something that is possible... although would be a good extension (perhaps you could add it to the blueprints section).

Revision history for this message
Shankar Jayagopi (shankar-l) said :
#2

For refreshing the pdf file every 2 mins, you can add a script to the embedded page like

<script>
window.setInterval("reloadIFrame();", 120000);

function reloadIFrame() {
 document.frames["frameName"].location.reload();
}
</script>

Note: you will have to add an "id" attribute to the frame tag with the value "frameName" according to the above script.

Revision history for this message
Shankar Jayagopi (shankar-l) said :
#3

looks like location is not supported anymore. The following example of mine works

HTML:
<iframe id="frameName" src="http://www.wikipedia.org" width="100%" height="100%"></iframe>

SCRIPT:
<script>
window.setInterval("reloadIFrame()", 12000);

function reloadIFrame() {
  document.getElementById('frameName').src = document.getElementById('frameName').src;
}
</script>

Revision history for this message
vineet joshi (vineet-joshi) said :
#4

Hi Shankar ,

Thanks a lot for replying.

i am done with refreshing part . as the pdf is automatically created by a batch file in background and link to the pdf gives me the latest PDF.

what i want is scrolling of PDF automatically.what i am doing right now is calling the pdf based on page number

<iframe src="http://192.168.2.135/WOOverDue.pdf#page=2&scrollbar=0"width="100%" height="100%"></iframe>
so , my work will fail if there is any increase in page number of PDF .

Please tell me if i am not clear .

Regards
Vineet

Can you help with this problem?

Provide an answer of your own, or ask vineet joshi for more information if necessary.

To post a message you must log in.