3

Minimal tex

\documentclass{article}
\usepackage{media9}

\begin{document}
\includemedia[
  activate=pageopen,
  width=200pt,
  height=150pt
]{}{Heartaxis.swf}
\end{document}

Everything runs fine in XeLaTeX typesetting engine apparently with the above code, but I see the animation as

enter image description here

I have previewed the result now in many viewers with same view. The background should be white, not dark grey.

How can you include SWF file in pdf?

Probably, some other file format than PDF has better support for SWF. PS or other?

  • My first thought is to read tug.org/pracjourn/2010-1/scarso/scarso.pdf. – Malipivo Mar 21 '14 at 15:40
  • 2
    Your code works fine for me and opening with Adobe Reader I'm able to see the video in the PDF. – karlkoeller Mar 21 '14 at 15:46
  • @Malipivo: too much to be read ;). Just use media9. – AlexG Mar 21 '14 at 16:03
  • 2
    One word: Don't – morbusg Mar 21 '14 at 17:14
  • 1
    @AlexG: wrong media; use HTML – morbusg Mar 21 '14 at 17:55
4

Update

This issue is related to SWFs with transparent background (the main SWF Application widget doesn't provide an own background colour). media9 has recently been fixed to cope with such SWF files.

\documentclass{article}
\usepackage{media9}[2014/08/06]

\begin{document}
\includemedia[
  activate=pageopen,
  width=200pt,
  height=150pt
]{}{http://nl.ecgpedia.org/images/c/cc/Heartaxis.swf}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.