The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com
__________________________________________________________________

Hi Sam,

Thanks again for your help here.

I have tested the code and have struck a few problems but I couldn't be
happier no, more delighted with the way that it works (looks like it will
work ;-)   )

I used this version of the code:

var originalDoc = this;
var testvar = app.popUpMenu("Chap_01.pdf","Chap_02.pdf");
if (testvar == "Chap_01.pdf"){
  app.openDoc("Chap_01.pdf", this);  // adding the second argument forces
relative path links
  originalDoc.closeDoc(false);  // this will cause you to save the original
file if any changes were made
  this.pageNum = 4;   // display the page you would like (0 = first page, 1 =
second page ...)
}
if (testvar == "Chap_02.pdf"){
  app.openDoc("Chap_02.pdf", this);  
  originalDoc.closeDoc(false);
  this.pageNum = 8;
}
It behaves weirdly on a range of systems. I authored it on OSX  in Acrobat
6. On this system when you click one of the menu options it seems to briefly
open the doc and close it again in a flash. I tested it on a PC with 4.05,
5.1 and 6 and it failed in different ways on each system. It worked under
one of them in that it opened the appropriate doc but never went to the
requested page number.

any ideas?

by the way... what is learned path notation?

Many thanks

Mark


> ----------
> From:         Scott Brenner
> Reply To:     [EMAIL PROTECTED]
> Sent:         Tuesday, August 26, 2003 10:51 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [PDF] Drop down list type functionality from a standard
> button?
> 
> 
> The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com
> __________________________________________________________________
> 
> Dear Mark,
> 
> I was going to say sure until you said you don't want to use Javascript.
> 
> With Javascript you would have had to:
> a. Put the PDF files in the same folder (or learned path notation).
> b. Create a field (button, or text preferably).
> c. Add the following code to the Mouse Down event of the newly created
> field  (changing <filename> to valid "filename.pdf" for you current
> machine.
> 
> var originalDoc = this;
> var testvar = app.popUpMenu("PDF new file 1","PDF new file 2");
> if (testvar == "PDF new file 1"){
>   app.openDoc(<filename>, this);  // adding the second argument forces
> relative path links
>   originalDoc.closeDoc(false);  // this will cause you to save the
> original file if any changes were made
>   this.pageNum = 0;   // display the page you would like (0 = first page,
> 1 = second page ...)
> }
> if (testvar == "PDF new file 2"){
>   app.openDoc(<filename>, this);  
>   originalDoc.closeDoc(false);
>   this.pageNum = 0;
> }
> 
> Good Luck,
> Sam Brenner
> 
> 
> 
> 
> 
> >>> [EMAIL PROTECTED] 08/25/03 21:32:17 >>>
> 
> The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com
> 
> __________________________________________________________________
> 
> I had such great success with the last question I posted to the list I am
> going to pose a problem I had more or less given up on.
> 
> What I want to do is this:
> Mainly for reasons of lack of space on the appropriate pages of many pdfs
> we
> need to use something like a combo box that goes to appropriate pages in
> the
> same and other pdfs. The twist being that the combo box in a non roll over
> state needs to just be a normal looking button icon. There is no space for
> the full menu to appear as it will obscure other content.
> 
> Ie on screen in a non rollover state it just looks like a round red aqua
> style button. When rolled over the combo box like menu options are
> revealed
> and the user clicks on the appropriate menu listing and then is taken to
> that page. 
> 
> For example the drop down box would offer: same doc page 10, different doc
> a
> page 23, different doc b page 12, another doc etc. in  its menu and
> selecting one would go to that destination. 
> 
> I can't see any way of approximating this behaviour without reverting to
> JavaScript which I know nothing about.
> 
> Any suggestions would be gladly received. As I said, I had given up on
> this
> one so there is no harm in trying.
> 
> cheers
> 
> Mark
> 
> To change your subscription:
> http://www.pdfzone.com/discussions/lists-pdf.html 
> 
> 
> 
> To change your subscription:
> http://www.pdfzone.com/discussions/lists-pdf.html
> 
> 

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdf.html

Reply via email to