Viewers for PDF, PS, and DVIClose specific pdf file

Information and discussion about output viewers related to LaTeX (e.g. Adobe Reader, Ghostview, YAP, ...)
Post Reply
adams
Posts: 2
Joined: Thu Mar 25, 2010 3:12 pm

Close specific pdf file

Post by adams »

Hi!

I'm trying to, in some way, make Notepad++ close a specific pdf file opened in Adobe Acrobat 9 before typesetting it (because of file lock, you know all this...)
I am actually using SumatraPDF from time to time so please don't tell me to quit using adobe, I like it (call me stupid but I do :P).

The best way until now is to kill acrobat.exe (using taskkill command) but that means closing all open pdf files which is not good. Can this be done using DDE? How? (I know winedt can do this, right?)
Any help appreciated!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: Close specific pdf file

Post by T3. »

Well, find out whether Notepad++ speaks DDE and you will have your answer.
adams
Posts: 2
Joined: Thu Mar 25, 2010 3:12 pm

Close specific pdf file

Post by adams »

T3. wrote:Well, find out whether Notepad++ speaks DDE and you will have your answer.

Hi! I guess it don't but I've found some different DDE-programs (such as DDERun http://www.robvanderwoude.com/ddecommandline.php) which I think should be possible to launch/run from a bat-file. The thing is that I don't really find any good documentation or examples. Another problem is that Acrobat page states that server should be acroview, and I don't have any file named acroview (I guess its the file that is supposed to interpret the commands sent by any other application).

As you see I've got a lot of problems/questions...
Is there any other way to close a specific file?
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Close specific pdf file

Post by T3. »

The last time I checked, none of the command line DDE clients I could find actually worked. Let me know if you find one.
adams wrote:Is there any other way to close a specific file?
Sure, depends how much effort you're willing to put into it. Write a DDE client yourself and problem solved. Or ask Adobe to finally fix this file locking silliness (but I wouldn't hold your breath on this one).

Cheers,

Tomek
Post Reply