[pdftex] pdftex & AcroReader

Kuznetsov A,V. kuzn at htsc.mephi.ru
Mon Feb 12 17:49:49 CET 2001

Dear pdftex users,
this problem has already been discussed several times in
mail-list, but its solution has only partly been obtained.

When one uses AcroReader as viewer under TeXing, he should close
document before translation (Ctrl + W) and reopen it after
translation (Ctrl + <-). It is helpful when TeX-editor does that.

We have found that for Windows, the following codes should be sent
to AacroReader to close and restore the last opened document:
wm_Command ($0111) with wParam=$E102 //to close
wm_Command ($0111) with wParam=$179D //to restore

For example, to operate AcroReader from WinEdt, the following macros
can be used.

//to translate
SendMessage("Acrobat Reader", $0111, $E102, 0);
// This SendMessage produces "Close" command
Run("LaTeXPDF.bat %N","%P");
//The last should be modified to run compilation in Your configuration

//to restore the previous view
Run("Acrord32.exe ""%P\%N.pdf""");
// We open document window
SendMessage("Acrobat Reader",$0111,$179D,0);
// These SendMessage produces "Go Back" command to AcroReader

A.Kuznetsov and K.Klementev

More information about the pdftex mailing list