[pdftex] movies

Robert Howlett rhowlett at mail.usyd.edu.au
Sun May 13 16:40:58 CEST 2001


Hello,

Out of curiosity only, I tried to put a "movie annotation" into
a pdf file. I can get it to work when the movie file is there
as an external file, but when I try to embed the movie file
into the pdf file acrobat reader still looks for an external file.
Is there a way to get it to use an embedded file?

The tex code I used is below. The version of pdftex I was using
pdfTeX, Version 3.14159-14h-released-20010417 (Web2c 7.3.3.1)
complained about
\pdfobj attr {...
but when I used an older version I happened to have (version 14c)
it was OK.

Bob Howlett

--------- 

\pdfcompresslevel=0

\immediate\pdfobj attr {/Type /EmbeddedFile} file {BILL.MOV}
{\obeyspaces\xdef\moviefile{\the\pdflastobj 0 R}}

\immediate\pdfobj { << /Type /Filespec
                   /F (BILL.MOV)
                   /EF << /F \moviefile>> >>}
{\obeyspaces\xdef\moviedict{\the\pdflastobj 0 R}}

\hbox to 5cm{\vrule height 4.5 cm\hss
  \vbox to 4.5 cm
  {\hrule\vfil\hbox to 5 cm{\hfil Click here\hfil}\vfil\hrule}%
  \hss\vrule
  \hskip-5cm
  \pdfannot height 4.5 cm depth 0 cm width 5 cm
  {/Subtype /Movie
   /Movie << /F \moviedict >>
   /A << /ShowControls true /Mode /Open >>}\hskip 5cm}

\bye




More information about the pdftex mailing list