Re: [NTG-context] JavaScript in multimedia PDF

2021-08-12 Thread Pablo Rodriguez via ntg-context
On 8/12/21 3:02 AM, Michal Vlasák via ntg-context wrote: > On Thu Aug 12, 2021 at 12:55 AM CEST, Hans Hagen via ntg-context wrote: >> Hi >> >>> -Type = pdfconstant(MediaPermissions), >>> +Type = pdfconstant("MediaPermissions"), >> That's an interesting one ...

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-11 Thread Michal Vlasák via ntg-context
On Thu Aug 12, 2021 at 12:55 AM CEST, Hans Hagen via ntg-context wrote: > Hi > > > -Type = pdfconstant(MediaPermissions), > > +Type = pdfconstant("MediaPermissions"), > That's an interesting one ... easilly goes unnoticed ... thanks To put credit where its due,

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-11 Thread Hans Hagen via ntg-context
Hi -Type = pdfconstant(MediaPermissions), +Type = pdfconstant("MediaPermissions"), That's an interesting one ... easilly goes unnoticed ... thanks Hans -

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-11 Thread Michal Vlasák via ntg-context
More context is in previous messages, but here is the patch for ConTeXt to make scripting multimedia possible: --- a/tex/context/base/mkxl/lpdf-wid.lmt +++ b/tex/context/base/mkxl/lpdf-wid.lmt @@ -649,6 +649,7 @@ local function insertrenderingwindow(specification) Subtype

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-11 Thread Pablo Rodriguez via ntg-context
On 8/10/21 11:52 PM, Michal Vlasák via ntg-context wrote: > On Mon Aug 9, 2021 at 8:32 AM CEST, Pablo Rodriguez via ntg-context wrote: > [...] >> I get exactly the same results: screen object, but null rendition. >> >> I have no idea what it is needed here. > > Sorry, in the last mail I forgot to

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-10 Thread Michal Vlasák via ntg-context
On Mon Aug 9, 2021 at 8:32 AM CEST, Pablo Rodriguez via ntg-context wrote: > On 8/8/21 11:00 PM, Michal Vlasák via ntg-context wrote: > > Is there a newer document than "JavaScript for Acrobat API Reference" > > (May 2015)? > > Well, the link you provided >

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-09 Thread Pablo Rodriguez via ntg-context
On 8/8/21 11:00 PM, Michal Vlasák via ntg-context wrote: > On Sun Aug 8, 2021 at 8:22 PM CEST, Pablo Rodriguez via ntg-context wrote: >> I don’t know why I get the following message: >> >> TypeError: a.doc is undefined >> >> It seems to be caused by "app.media.openPlayer", but the code is copied

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-08 Thread Michal Vlasák via ntg-context
On Sun Aug 8, 2021 at 8:22 PM CEST, Pablo Rodriguez via ntg-context wrote: > I don’t know why I get the following message: > > TypeError: a.doc is undefined > > It seems to be caused by "app.media.openPlayer", but the code is copied > from the documentation Adobe released early this year. Is

[NTG-context] JavaScript in multimedia PDF

2021-08-08 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction [state=start] \startJSpreamble varia used now this.pageNum = 0 ; // start at 0 function GoToFirstSlide(label) { this.pageNum = 0 ; var rendition = this.media.getRendition(label) ; var player = app.media.openPlayer({