How to use Adobe Acrobat Reader (free) as the pdf viewer when compiling file in Windows Terminal (Windows)
I want to use Adobe Acrobat Reader (free) and I always get this message when I have my Windows Terminal, vs code and acrobat setup backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be opened for writing I run into no problems with using sumatra or okular, but Adobe Acrobat free seems to have this problem. Is there a way to fix this? The way I run context on windows is by making the doc in vscode (no extension, just plain vscode), compiling in Windows Terminal and using a pdf viewer to then view stuff.
On 10/09/2024 06:52, Felix wrote:
I want to use Adobe Acrobat Reader (free) and I always get this message when I have my Windows Terminal, vs code and acrobat setup
backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be opened for writing
I run into no problems with using sumatra or okular, but Adobe Acrobat free seems to have this problem. Is there a way to fix this? The way I run context on windows is by making the doc in vscode (no extension, just plain vscode), compiling in Windows Terminal and using a pdf viewer to then view stuff.
Acrobat locks files when open - as such, you have to close your PDF before you run any process that modifies it (so true for all *TeX). It's one reason there is a tendency not to use Acrobat as the main previewer in TeX workflows. That said, some editors (WinEdt at least) will auto-close the PDF when starting a run for exactly this reason. Joseph
On Tue, Sep 10, 2024 at 05:52 (-0000), Felix wrote:
I want to use Adobe Acrobat Reader (free) and I always get this message when I have my Windows Terminal, vs code and acrobat setup
backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be opened for writing
I run into no problems with using sumatra or okular, but Adobe Acrobat free seems to have this problem. Is there a way to fix this? The way I run context on windows is by making the doc in vscode (no extension, just plain vscode), compiling in Windows Terminal and using a pdf viewer to then view stuff.
As part of TeXlive there is a program called pdfopen (and a companion program called pdfclose) which may (or may not) help you out if you wish to continue using acroread. I am the last maintainer (as far as I know!) of the Linux version of this program for TeXlive. I never use windows, but my understanding is there is (or was) a version for windows. You might want to look to see if you can find this. Cheers. Jim
On 9/10/2024 9:22 PM, Jim wrote:
On Tue, Sep 10, 2024 at 05:52 (-0000), Felix wrote:
I want to use Adobe Acrobat Reader (free) and I always get this message when I have my Windows Terminal, vs code and acrobat setup
backend > quitting because file 'Chapter 4 Assignment.pdf' cannot be opened for writing
I run into no problems with using sumatra or okular, but Adobe Acrobat free seems to have this problem. Is there a way to fix this? The way I run context on windows is by making the doc in vscode (no extension, just plain vscode), compiling in Windows Terminal and using a pdf viewer to then view stuff.
As part of TeXlive there is a program called pdfopen (and a companion program called pdfclose) which may (or may not) help you out if you wish to continue using acroread.
I am the last maintainer (as far as I know!) of the Linux version of this program for TeXlive. I never use windows, but my understanding is there is (or was) a version for windows. You might want to look to see if you can find this. irr it originates in fptex for windows (by fabrice) so there should be some binary but the problem is that the api to acrobat changed over time so it had to be adapted occasionally
acrobat : pdfopen --rxi --file filename fullacrobat : pdfopen --axi --file filename pdfclose -- file filename was the interface but as i never use acrobat in an edit-view flow it looks that i didn't bother to keep it on my machine Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Felix
-
Hans Hagen
-
Jim
-
Joseph Wright