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

Heiko Oberdiek heiko.oberdiek at googlemail.com
Mon Sep 27 21:09:48 CEST 2010


On Mon, Sep 27, 2010 at 02:07:47PM +0900, Akira Kakuto wrote:

> > Looking into attaching files to XeTeX documents
> > (?$B!&la attachfile(2).sty), I tried out the following
> > recipe given by Jin-Hwan Cho
> > (http://www.tug.org/TUGboat/tb30-1/tb94cho.pdf):
> 
> The current directory was removed from DVIPDFMXINPUTS
> for a security reason in the latest TL2010.
> Therefore use ./example.txt as I suggested previously,
> or run as
> 
> DVIPDFMXINPUTS='.:' dvipdfmx dvifilename

At TeX macro level files can be found
according TEXINPUTS and a test can be written for testing
if the file does exists (e.g. LaTeX's \IfFileExists).
However files for embedding as streams can't be tested this way.
Also when using pdfTeX, it find many metadata (size, modification
date, even md5sum), but only for files in TEXINPUTS.

Of course, dvipdfmx is running *after* the TeX run. Thus there isn't
an easy way to fix this issue. Even the format of the TeX run
is unkown and TEXINPUTS might depend on the format.

Perhaps the ...INPUTS variable could be split into two
environment variables, one for configuration files, the second
one for other files (stream files, any other?). The the second
one could be set similar to TEXINPUTS without opening the
security hole for the configuration file.


* pdf:close is not working correctly:

\nopagenumbers
\null
\special{pdf:object @o <<>>}
\special{pdf:put @o <</a/b>>}
\special{pdf:close @o}
\special{pdf:put @o <</c/d>>}
\special{pdf:put @catalog <</oref @o>>}
\bye

After "dvipdfmx -V 4 test" The PDF file contains (dvipdfmx-20100328):
  4 0 obj
  <</a/b/c/d>>
  endobj

Instead of "/c/d" there should be an error or warning message
in the dvipdfmx run.


* Missing documentation for dvipdfmx.

Can the article tb94cho.pdf (see above) be provided in TeX Live
and found by "texdoc dvipdfmx", please?

Yours sincerely
  Heiko Oberdiek


More information about the tex-live mailing list