Thread View: adobe.acrobat.sdk
6 messages
6 total messages
Started by Kimberly_G
Sun, 29 Mar 2009 21:09
Current Page Number
Author: Kimberly_G
Date: Sun, 29 Mar 2009 21:09
Date: Sun, 29 Mar 2009 21:09
12 lines
1437 bytes
1437 bytes
Hi, I'm a newbie at any kind of Acrobat development, but can't seem to find a way to get the current page number on the client side of a pdf loaded into Reader. Is there a fairly painless way to do this? Additionally, it'd be cool to be able to change pages using client-side script as well (I'm currently re-loading it with the #page= attribute)...can I do that easily? Here's a short description of the app so that my questions make a little more sense: - Dropdowns on the left to drill down to a specific set of options. Iframe on the right that loads a corresponding pdf and loads the proper page for the dropdown options the user has selected as they drill down. - Need to be able to reverse the process somehwat so that if the user goes to a page in the pdf on the right I can update some of the info on the left. Any tips on how to accomplish this are greatly appreciated! :) Thanks!
Re: Current Page Number
Author: Leonard_Rosenthol
Date: Mon, 30 Mar 2009 01:13
Date: Mon, 30 Mar 2009 01:13
1 lines
826 bytes
826 bytes
Start by downloading the Acrobat SDK and reading the documentation and looking at the sample code.
Re: Current Page Number
Author: Kimberly_G
Date: Mon, 30 Mar 2009 02:55
Date: Mon, 30 Mar 2009 02:55
1 lines
1083 bytes
1083 bytes
Leonard, thanks for your quick reply. I have downloaded the items you mentioned and started going through them. I see that the "this.pageNum" would be what I need; however, I'm unsure how to use this. How would my web page get access to this (pdf is displayed from within an iframe)...or is Acrobat JavaScript only for use within pdfs themselves (I don't have access to the internals of the pdfs or the files that they were created from...only the web page that wants to manipulate the pdf)? Thanks again!
Re: Current Page Number
Author: malkyt8
Date: Mon, 30 Mar 2009 17:02
Date: Mon, 30 Mar 2009 17:02
9 lines
842 bytes
842 bytes
Hi, The JavaScript is only available in Acrobat. however you can use the AxAcroPDFLib.AxAcroPDF from the IAC Reference. Unfortunately this does not have a current page number function. It does have numerous functions for moving pages and so may prove helpful. HTH Malky
Re: Current Page Number
Author: Kimberly_G
Date: Wed, 01 Apr 2009 21:52
Date: Wed, 01 Apr 2009 21:52
1 lines
1156 bytes
1156 bytes
Thanks, Malky! I have been looking more into that aspect of the sdk now and it looks promising. However, I've downloaded the samples and can't seem to get any of them to work. I even tried the html sample figuring it'd be the easiest to get running, but the control specified by the object tag won't load (and doesn't error or anything like that). Can you point me in the right direction for getting started with the IAC stuff? Do I need to have Acrobat in order to do this or something? Thanks for your help!
Re: Current Page Number
Author: Kimberly_G
Date: Wed, 01 Apr 2009 22:04
Date: Wed, 01 Apr 2009 22:04
1 lines
1089 bytes
1089 bytes
Apparently I was just using the wrong browser...I had tried the html sample in FireFox. In IE it works as expected and I see the client-side paging you spoke of. Do you know if this is an IE only control or where I could find versions for other browsers? And is there something in the IAC stuff that you could point me to that I could use instead that would be browser independent but that I could still manipulate on the client-side? Thanks!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads