This shows you the differences between two versions of the page.
acroread:acroread [2009/07/07 15:44] – created viktorh | acroread:acroread [2009/07/07 15:51] (current) – layout modified viktorh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Here is a slick method to do it through Javascript on Linux. Create a new text file called (for instance) reload.js and put it into the directory: | + | * Here is a slick method to do it through Javascript on Linux. Create a new text file called (for instance) reload.js and put it into the directory: |
- | ~/ | + | ~/ |
- | In the text file write these lines: | + | * |
- | reloadCurrentDoc = app.trustedFunction( | + | reloadCurrentDoc = app.trustedFunction( |
- | function(currentDoc) { | + | |
- | app.beginPriv(); | + | |
- | currentDocView=currentDoc.viewState; | + | |
- | currentDocPath=currentDoc.path; | + | |
- | currentDoc.closeDoc(); | + | |
- | currentDoc=app.openDoc(currentDocPath); | + | |
- | currentDoc.viewState=currentDocView; | + | |
- | app.endPriv(); | + | |
- | }); | + | }); |
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | nPos: 0 | ||
+ | }); | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | nPos: -1 | ||
+ | }); | ||
- | app.addMenuItem({ | ||
- | cName: " | ||
- | cUser: " | ||
- | cParent: " | ||
- | cExec: " | ||
- | cEnable: " | ||
- | nPos: 0 | ||
- | }); | ||
- | app.addToolButton({ | ||
- | cName: " | ||
- | cExec: " | ||
- | cToolText: " | ||
- | cEnable: " | ||
- | cLabel: " | ||
- | nPos: -1 | ||
- | }); | ||
- | Close and open Acrobat. A toolbox item called ' | + | * Close and open Acrobat. A toolbox item called ' |
- | NOTE: On Ubuntu, remember to install the acrobat-plugins package from the medibuntu repository. | + | * NOTE: On Ubuntu, remember to install the acrobat-plugins package from the medibuntu repository. |
- | Credit to Alexander Grahn for the idea | + | * Credit to Alexander Grahn for the idea http:// |
- | http:// | + |