* question on page transitions
@ 2020-07-25 17:28 Pablo Rodriguez
0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez @ 2020-07-25 17:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
I have a question about page transitions (lines 297-304 from scrn-pag.mkvi):
\def\scrn_transitions_set_indeed
{\begingroup
\edef\currentinteractionscreendelay{\interactionscreenparameter\c!delay}%
\clf_setpagetransition
n {\scrn_transitions_list}%
delay \ifx\currentinteractionscreendelay\v!none
\zerocount\else\currentinteractionscreendelay\fi
\relax
\endgroup}
I wonder whether the "delay" option in \setupinteractionscreen defines
the number of seconds for the page or for the transition.
From what I read in the code above, I would say that the duration is
defined for the transition itself.
Inspecting the output PDF code in generated documents, the duration is
set for the page.
In PDF code. /Page <</Duration 5>> sets the number of seconds for the
page
(https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#search=duration).
/Page <</Trans <</D 5>> >> sets the number of seconds for the transition
(https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#nameddest=G11.2295795).
With the followling sample:
\setuppapersize[A9,landscape]
\setupinteraction[state=start]
\setupinteractionscreen[option=max, delay=5]
\setuppagetransitions[random]
\setupbodyfont[50pt]
\starttext
\dorecurse{2}{%
\startmakeup[page][style=\bf\ss, align=center]
\recurselevel
\stopmakeup%
}
\stoptext
The output PDF document may contain a /Page object such as:
6 0 obj
<<
/Contents 4 0 R
/Dur 5
/Trans <<
/Di 90
/M /O
/S /Fly
>>
/Type /Page
>>
endobj
This forces the viewer to advance the page after 5s. To have a
transition duration of 5s, it should read:
6 0 obj
<<
/Contents 4 0 R
/Trans <<
/D 5
/Di 90
/M /O
/S /Fly
>>
/Type /Page
>>
endobj
https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#nameddest=G11.2104292
shows the difference between /Dur and /D.
Could anyone confirm whether this should be fixed (or I’m missing
something)?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-25 17:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-25 17:28 question on page transitions Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).