[tex-live] TL2010 dvipdfmx pdf:fstream broken?

Will Robertson wspr81 at gmail.com
Mon Sep 27 06:16:25 CEST 2010


Hi,

Looking into attaching files to XeTeX documents (à la attachfile(2).sty), I tried out the following recipe given by Jin-Hwan Cho (http://www.tug.org/TUGboat/tb30-1/tb94cho.pdf):

\begin{filecontents*}{example.txt}
this is a text file to be embedded
\end{filecontents*}
\documentclass{article}
\begin{document}
test
\special{pdf:fstream @myfile (example.txt)}%
\special{pdf:ann bbox 0 0 10 10 <<
  /Subtype /FileAttachment /FS << 
    /Type /Filespec /F (example.txt)
      /EF << /F @myfile >> >> 
  /Name /PushPin >>}
\end{document}

This works correctly for me in TeX Live 2009 (and the file is embedded in the PDF), but in TL2010 I get the following message:

** WARNING ** Could not open file: example.txt
** WARNING ** Interpreting special command fstream (pdf:) failed.
** WARNING ** >> at page="1" position="(168.14, 707.125)" (in PDF)
** WARNING ** >> xxx "pdf:fstream @myfile (example.txt)"
]
** WARNING ** Object @myfile used, but not defined. Replaced by null.

Is this a bug in (x)dvipdfmx in TL2010, or am I missing something? I'm using MacTeX in both 2009 and 2010 cases.

Thanks,
-- Will

P.S.  I previously posted this question on tex.stackexchange.com before realising that it was probably a bug in the driver. Sorry for the cross-posting for those who follow both groups.


More information about the tex-live mailing list