Re: [NTG-context] AcroRd32 Runtime Error

2011-10-05 Thread Hans Hagen

On 5-10-2011 01:42, Wolfgang Werners-Lucchini wrote:

Hallo,


see l-pdfview.lua ... the clal on windows is: pdfopen --ax --file

anyhow, unfortunately the pdfopen/close programs are not consistent
with
respect to dealing with commandline options on different platforms
(and
also not downward compatible) which in fact renders them somewhat
useless (it woudl be nice if someone would normalize them)

Hans


if I give the command: context --autopdf a.tex

I get the runtime error and after the context run

mtx-context | pdfview methods: acrobat default okular, current
method: acrobat (directives_pdfview_method)Cannot contact a server.

pdfopen --ax --file a.pdf
pdfopen --rx --file a.pdf
pdfopen --file a.pdf

works ok

pdfclose --ax --file a.pdf
pdfclose --rx --file a.pdf
pdfclose --file a.pdf

works ok too, if not following a pdfopen, otherwise I get:

Cannot execute command [DocClose(%s)] (error 16393)

Shouldn't be the first two variants for acrobat (resp. reader) 10?
I wonder why they are working. I have the reader 9.4.6 and no acrobat
at all.


I only have 10 and there it works ok. Ideally the pdfopen/close programs 
should be clever enough to figure out what acrobat they deal with. If 
needed I can introduce (next weekend or so) a 'open pdf' and 'close pdf' 
in the configuration file so that one can tweak it.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] AcroRd32 Runtime Error

2011-10-04 Thread Wolfgang Werners-Lucchini
Hallo,

 I have updated my context after a very long time.
 The first test run does not work because an initally dde attempt to
 acroread.
 
 I got the following errormessage:
 
 Microsoft Visual C++ Runtime Library
 
 Runtime Error!
 Program: C:\Programme\Adobe\Reader 9.0\Reader\AcroRd32.exe
 
 This application has requested the Runtime to terminate it in an
 unusual  way.
 Please contact the application's support team for more 
 information.
 
 I have Acrobat Reader Version 9.4.6. This is working ok with pdf 
 files and this has worked ok with context prior to the update.

I have the following questions:

The executable pdfdde, resp. their incarnations pdfopen and pdfclose 
know an option --rx. Is this necessary to use acrobat reader 10?

pdfdde --help outputs:

Beware: only documents opened by `pdfopen' can be closed
by `pdfclose'.

But if I open my compiled file manually (not by pdfopen), --autopdf 
works ok. It closes the reader and opens him with the new compiled 
file and so on. So, an initally open with pdfopen does not work!

How is pdfopen/close working? Can someone explain?

pdfdde seems to be based on 
---
DDEOpen.c

This file is furnished to you by Adobe Systems Incorporated
under the terms of the Acrobat (r) Plug-ins Software
Development Kit License Agreement.

Copyright (C) 1995-1999, Adobe Systems Inc.  All Rights Reserved.
---

Is there any difference (not related to Reader 10)?


I do not understand at all what has happend. 10 Minutes before my 
context-update, all was working ok. There must be a little 
difference.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] AcroRd32 Runtime Error

2011-10-04 Thread Hans Hagen

On 4-10-2011 18:39, Wolfgang Werners-Lucchini wrote:

Hallo,


I have updated my context after a very long time.
The first test run does not work because an initally dde attempt to
acroread.

I got the following errormessage:

 Microsoft Visual C++ Runtime Library

 Runtime Error!
 Program: C:\Programme\Adobe\Reader 9.0\Reader\AcroRd32.exe

 This application has requested the Runtime to terminate it in an
unusual  way.
 Please contact the application's support team for more
information.

I have Acrobat Reader Version 9.4.6. This is working ok with pdf
files and this has worked ok with context prior to the update.


I have the following questions:

The executable pdfdde, resp. their incarnations pdfopen and pdfclose
know an option --rx. Is this necessary to use acrobat reader 10?

pdfdde --help outputs:

Beware: only documents opened by `pdfopen' can be closed
by `pdfclose'.

But if I open my compiled file manually (not by pdfopen), --autopdf
works ok. It closes the reader and opens him with the new compiled
file and so on. So, an initally open with pdfopen does not work!

How is pdfopen/close working? Can someone explain?

pdfdde seems to be based on
---
DDEOpen.c

This file is furnished to you by Adobe Systems Incorporated
under the terms of the Acrobat (r) Plug-ins Software
Development Kit License Agreement.

Copyright (C) 1995-1999, Adobe Systems Inc.  All Rights Reserved.
---

Is there any difference (not related to Reader 10)?


I do not understand at all what has happend. 10 Minutes before my
context-update, all was working ok. There must be a little
difference.


see l-pdfview.lua ... the clal on windows is: pdfopen --ax --file

anyhow, unfortunately the pdfopen/close programs are not consistent with 
respect to dealing with commandline options on different platforms (and 
also not downward compatible) which in fact renders them somewhat 
useless (it woudl be nice if someone would normalize them)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] AcroRd32 Runtime Error

2011-10-04 Thread Wolfgang Werners-Lucchini
Hallo,

 see l-pdfview.lua ... the clal on windows is: pdfopen --ax --file
 
 anyhow, unfortunately the pdfopen/close programs are not consistent
 with 
 respect to dealing with commandline options on different platforms
 (and 
 also not downward compatible) which in fact renders them somewhat 
 useless (it woudl be nice if someone would normalize them)
 
 Hans

if I give the command: context --autopdf a.tex

I get the runtime error and after the context run

mtx-context | pdfview methods: acrobat default okular, current 
method: acrobat (directives_pdfview_method)Cannot contact a server.

pdfopen --ax --file a.pdf
pdfopen --rx --file a.pdf
pdfopen --file a.pdf

works ok

pdfclose --ax --file a.pdf
pdfclose --rx --file a.pdf
pdfclose --file a.pdf

works ok too, if not following a pdfopen, otherwise I get:

Cannot execute command [DocClose(%s)] (error 16393)

Shouldn't be the first two variants for acrobat (resp. reader) 10?
I wonder why they are working. I have the reader 9.4.6 and no acrobat 
at all.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___