movie15とDistillerを使って映画を埋め込む方法

movie15とDistillerを使って映画を埋め込む方法

以下は、PDF に映画を埋め込む最小限の動作例です。

\documentclass{article}
\pdfoutput=0
\usepackage{graphicx}
\usepackage[british]{babel}
\usepackage[ps2pdf]{hyperref}
\usepackage{movie15}
\begin{document}
Test.
\begin{figure}[ht]
\includemovie[playerid=AAPL_QuickTime,autoplay,controls,repeat,%
text={Anything here}]{10cm}{10cm}%
{/Users/christoph/Desktop/BLF/Films/Ultrafast-camera.mov}
\end{figure}
\end{document}

dvi - ps - Distiller ルートでは動作しません。latex でコンパイルされ、ps が生成されますが、Distiller は次のように言います:

Distilling: minworkex.ps

%%[ Error: undefinedfilename; OffendingCommand: file ]%%

Stack:
(r)

(/Users/christoph/Desktop/BLF/Films/Ultrafast-camera.mov)
{fstream1}
-mark-


%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
Distill Time: 0 seconds (00:00:00)
**** End of Job ****

明らかな間違いがないことを示すために、ファイル名を相対パスに変更し、Distiller の代わりに ps2pdf を使用すると、pdf が正しく生成されることを付け加えておきます。

ご協力いただければ幸いです。次版では Distiller を使用して無料でダウンロードできる教科書を作成したいと考えています。

PS movie15 が廃止されていることは承知していますが、当面は、Tex ソース内の数十本の映画の多くの種類のコードを変更するのは難しいようです。

答え1

Postscript でのファイル読み取りおよび書き込みコマンドは、現在の Ghostscript および Distiller バージョンでは「安全ではない」とみなされ、PS から PDF への変換中にエラーが発生します。このデフォルトの動作は、これらのプログラムを実行するときに特定のコマンドライン オプションを使用して上書きできます。

acrodist /F ...
ps2pdf -dNOSAFER ...

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/Distiller9APIReference.pdf#G4.1503951

http://www.ghostscript.com/doc/9.19/Use.htm#その他のパラメータ

関連情報