PDA

View Full Version : Closing a PDF document from the terminal



OOpingOO
3rd May 2009, 10:54 AM
I'm using the latex gedit plugin for creating latex documents and have Adobe Acrobat reader installed and set as my preferred PDF viewer. After compiling the latex document, the plugin runs 'gnome-open %f' to open the resulting PDF.

Now, here's my question: is there a terminal command that I can run, before compiling the 'new' latex document that will close the 'old' version in Acrobat if it is open? Obviously, I could use the 'kill' command, but this would kill all my currently open PDF documents.

Thanks for your help in advance.

EDIT: I've just found that Acrobat has a 'reload' option that reloads the document. I suppose I could manually reload the document each time I compile, but it would be nice to have this done automatically.

mastertux
3rd May 2009, 08:36 PM
cool thanx for telling us the solution ;)

Linux (http://www.linux-archive.org/)