LaTeX forum ⇒ Viewers for PDF, PS, and DVIClose specific pdf file

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

Close specific pdf file

Postby adams » Thu Mar 25, 2010 3:20 pm

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!

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

Postby T3. » Thu Mar 25, 2010 7:19 pm

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

adams
Posts: 2
Joined: Thu Mar 25, 2010 3:12 pm

Postby adams » Sat Mar 27, 2010 4:35 pm

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

Postby T3. » Sun Mar 28, 2010 3:06 am

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


Return to “Viewers for PDF, PS, and DVI”

Who is online

Users browsing this forum: No registered users and 1 guest