Donnez vie à vos documents numériques !
 

Répondre à : Ouvrir un fichier pdf à la même page que celui ouvert (dans une autre langue)

abracadabraPDF Forums PDF – Général Ouvrir un fichier pdf à la même page que celui ouvert (dans une autre langue) Répondre à : Ouvrir un fichier pdf à la même page que celui ouvert (dans une autre langue)

#49479
Merlin
Maître des clés

J’ai trouvé ça dans la doc :

closeDoc :

Closes the document.
For Adobe Reader 5.1 or later, the method is always allowed:
?If the document was changed and no Document Save Rights S are available, the document is closed without any warnings and changes are lost.
?If Document Save Rights are available, the user has the option of saving the changed file.
It is important to use this method carefully, because it is an abrupt change in the document state that can affect any JavaScript executing after the close. Triggering this method from a Page event or Document event could cause the application to behave strangely.
In versions of Acrobat earlier than 7.0, a document that closes itself by executing this.closeDoc terminates any script that follows it. In Acrobat 7.0, the script is allowed to continue and to terminate naturally. However, if the Document Object of the closed document is referenced, an exception will be thrown.

Tu devrais essayer de mettre le closeDoc après le viewState

Quand à app.openInPlace, tu peux effectivement l’oublier.

:idee: