Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with app.activeDocs

Javascript Problems

Problem with app.activeDocs

by  Murgle  Posted    (Edited  )
The following is an extract from the readme file provided with Acrobat 5.05.

JavaScript Updates in Acrobat 5.0.5
-A new boolean property, "disclosed" is available for the Doc object, and its default value is "false",
-Even if the API call app.openDoc is successful opening the requested document, it returns value "false" to the caller unless the opened document sets Doc.disclosed to "true" as part of a Doc-level script. If Doc.disclosed is "true", Doc.openDoc returns the Doc Object of the document opened by this method,
-app.activeDocs only includes in the returned array the Doc Object for each active document open in the Viewer that has set Doc.disclosed to "true" at the time of app.activeDocs invocation.[463695].


To cut a long story short, put -

Code:
this.disclosed=true;

as a document javascript to sort it out.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top