如何使用 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 ****

為了表明沒有明顯的錯誤,我補充說,如果我將檔案名稱更改為相對並使用 ps2pdf 而不是 Distiller,則可以正確產生 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#Other_parameters

相關內容