[DVIPDFMx] embedding swf

Alexander Grahn A.Grahn at fzd.de
Fri Dec 4 22:19:58 KST 2009


On Fri, Dec 04, 2009 at 06:21:17PM +0900, Yves Maniette wrote:
> Hello, ????????????
>
>  I have tried to look on the archive but could not find a search
>facility, so here I am disturbing everybody.
>
> I need to know how to embed swf movie into pdf using pTeX (Japanese)
>then dvipdfmx. I have looked at the dvipdfm manual but did not find.

Get the package movie15.sty, patched for dvipdfmx/XeLaTeX by Jin-Hwan
Cho, from here:

http://mirror.ctan.org/graphics/asymptote/patches/movie15_dvipdfmx.sty

Then embed the SWF as follows:

\documentclass{article}
\usepackage{movie15_dvipdfmx}
\usepackage[dvipdfmx]{hyperref}

\begin{document}
  \includemovie[text={Click here!}]{0.8\linewidth}{0.6\linewidth}{file.swf}
\end{document}

You may need to adjust the width and height arguments of \includemovie
to match the original aspect ratio of the swf file.

The produced PDF works in the Windows and Mac versions of Adobe Reader,
starting from version 6. The current Reader 9 comes with a builtin
player, enabling SWF playback also on other platforms, including
Linux-x86. However, the embedding method is different and requires a
new LaTeX package yet to be written.

Alexander


More information about the dvipdfmx mailing list