<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Attempting to rephrase a problem in a more straightforward manne, going back to the root….</div>
<div><br>
</div>
<div>Consider the MWE below. This compiles fine and produces the expected output. However, uncommenting lines 16 and 32 in order to get the buttons/words in proper RTL order for Hebrew gives the following error (TL2014, and also now tried with TL2015 pretest):</div>
<div><br>
</div>
<div>“<span style="font-family: Menlo; font-size: 12px;">xdvipdfmx:fatal: A pending form XObject at the end of page</span>” and the compilation aborts. The same happens using \begin{RTL} … \end{RTL} instead of \begin{hebrew} … \end{hebrew} or replacing the
 pair with \texthebrew{ …. }.</div>
<div><br>
</div>
<div>I was able to get around this temporarily using lualatex at the suggestion of the media9 author but this solution offered no longer works (<a href="http://tex.stackexchange.com/questions/188434/media-button-in-rtl">http://tex.stackexchange.com/questions/188434/media-button-in-rtl</a>).</div>
<div><br>
</div>
<div>Can anyone suggest a fix? I’ve attached my log file.</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br>
</div>
<div>K</div>
<div>=====</div>
<div>
<div>\documentclass{article}</div>
<div>\usepackage{libertine,media9,polyglossia}</div>
<div>\setdefaultlanguage[variant=british]{english}</div>
<div>\setotherlanguage[]{hebrew}</div>
<div><br>
</div>
<div>\begin{document}</div>
<div>\marginpar{\includemedia[</div>
<div>  label=song49,</div>
<div>  activate=pagevisible,</div>
<div>  deactivate=pageinvisible,</div>
<div>  noplaybutton,</div>
<div>  flashvars={source=http://www.kfeuerherm.ca/IntHeb/BBE.mp3&hidebar=true},</div>
<div>  transparent</div>
<div>]{\makebox[1cm]{x}}{APlayer.swf}\mediabutton[mediacommand=song49:playPause,tooltip={Play/Pause}]{(P)}\mediabutton[mediacommand=song49:play[(0.0)],tooltip={Reset}]{(R)}}</div>
<div><br>
</div>
<div>%\begin{hebrew}</div>
<div>\mediabutton[</div>
<div>  mediacommand=song49:play[(0.65)],</div>
<div>  mediacommand=song49:pause[(1.45)],</div>
<div>  overface=ONE</div>
<div>]{בראשׁית}</div>
<div>\mediabutton[</div>
<div>  mediacommand=song49:play[(1.8)],</div>
<div>  mediacommand=song49:pause[(2.45)],</div>
<div>  overface=TWO</div>
<div>]{ברא}</div>
<div>\mediabutton[</div>
<div>  mediacommand=song49:play[(2.8)],</div>
<div>  mediacommand=song49:pause[(3.8)],</div>
<div>  overface=THREE</div>
<div>]{אלהים}</div>
<div>%\end{hebrew}</div>
<div>\end{document}</div>
</div>
</body>
</html>