
It supports saving PDF forms (AcroForms), and import or export form data in FDF/XFDF format. Its further development has been stopped in favour of the freemium PDF-XChange Editor. It was available in a free and a paid version.

.png)
The scripting is fairly general, so mutatis mutandis this might work for other pdf viewers too (Foxit, Sumatra etc).If this is correct and you don't get error messages, you might want to increase the timers in the vbs script change WScript.Sleep 0 to WScript.Sleep 500 for instance, and see if this solves the problem. if this does not work, first make sure that the paths are correct.Immediately after this, it switches back to LEd. This is the usual keystroke to close a document. So this starts the pdf viewer if it was not yet open, changes focus to it and sends the keystroke Ctrl+w to it. 'Change focus to LEd to observe the compilation. WshShell.AppActivate "PDF-XChange Viewer" 'Change foces to viewer to be able to send keys to it, and sent Ctrl+w to close the active document

WshShell.Exec("C:\Program Files\PDF-XChange Viewer\pdf-viewer\PDFXCview.exe") 'Start the viewer if it is not yet started Set WshShell = WScript.CreateObject("WScript.Shell") ' VB Script Document, to close a pdf before running pdflatex Go to line the line defining the pdflatex command, which should start like You can find the file in your LEd installation directory, submap \Definitions. So there we go:ġ: open tex_cmd.gd with a text editor. You need to change three things: change the arguments given to pdflatex.bat, edit pdflatex.bat, and use a vbs file to close the open document properly. If someone has a better/less quirky solution, please reply on this topic. It is not a very elegant solution (i am not a programmer) but it works, so I thought to place it here so someone else can use it. After a lot of trial and error it works now.

Furthermore, I wanted to be able to compile a new pdf using pdflatex while the old one is still open (in default, you have to close it by hand first). I was not satisfied using Adobe Reader and prefer PDF-XChange viewer, so I wanted to change that. Using LEd is nice, but if you are inexperienced in writing batch-files it might be difficult to configure it to work with alternative viewers.
