Skip to main content
Known Participant
June 16, 2017
Question

Is there a way to detect Initial pdf?

  • June 16, 2017
  • 1 reply
  • 1860 views

Hi,

I want to be able to differentiate between the initial pdf and subsequent ones when they are all active.  How can I do this?

Thanks in advance.

S

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
June 16, 2017

What do you mean, exactly? What is the "initial PDF"?

suemo22Author
Known Participant
June 16, 2017

So, if I have 5 pdf's.  I want a way to only perform an action on the 1st one and not 2, 3, 4, and 5.

I thought maybe there is a method which accesses just the 1st pdf.  I looked through API and saw nothing that helped.

I tried the following but it doesn't work.

var d = app.activeDocs;

for (var i=0; i<d; i++)

for (d==1)

{

app.alert ("it worked")

}

try67
Community Expert
Community Expert
June 16, 2017

Do you want to process the other files in a different way? I don't understand what you're trying to achieve, and why you're not simply using the "this" object to get access to the current document...