Monday, November 2, 2009

Foxit PDF Reader with WinEdt

1. Add to "Startup.edt" located at PATH_TO_WinEDT\Local\ the following two
lines

Assign('AcroRead','"C:\Program Files\Foxit Software\Foxit Reader\Foxit
Reader.exe"');
Assign("Acro-Title","Foxit Reader");

and make sure the path to Foxit PDF Reader is correct.

2. Open WinEdt and go to "Macros -> Run startup macro" to refresh the PDF
viwer.

3. Add to "Acrobat OpenDoc.bat" located at the PATH_TO_WinEDT\Exec\ the
following lines:

// Foxit?

FindInString(`%$('AcroRead');`,'Foxit',1,2,1000,1);
IfOK(!"Relax;",!"JMP('not_foxit')");
Run('%$("AcroRead"); "%P\%N.pdf"');
Exit;

:not_foxit::