[pdftex] Man page for pdftosrc

Tigran Aivazian tigran at aivazian.fsnet.co.uk
Wed Aug 3 22:59:17 CEST 2005

I forgot to add (for those interested in attachfile.sty usage and the fix 
I posted) that to actually set `mimetype' correctly one has to do a trick 
like this:

\catcode`\#=12 \def\hashchar{#}\catcode`\#=6
         mimetype={text\hashchar 2Fplain},%

So, although I fixed attachfile.sty to store the value correctly, I wasn't 
able to _pass_ the value containing #2F in it, until Vladimir Volovich 
taught me the above solution.

Kind regards

On Wed, 3 Aug 2005, Tigran Aivazian wrote:

> On Wed, 3 Aug 2005, Heiko Oberdiek wrote:
>> Since AR 7/Linux and AR 6/Other, attachted files (see attachfile package)
>> can be extracted by normal user without the need of special programs.
>> Therefore I would consider pdftosrc obsolete for the purpose of
>> attaching and extracing files.
> Hi Heiko,
> I was going to write the same as what you said above, but I wanted to add 
> that attachfile.sty as shipped is broken and requires the small obvious fix 
> below (to set /Subtype correctly as per PDF specs).
> Kind regards
> Tigran
> --- /usr/local/TeX/texmf-dist/tex/latex/attachfile/attachfile.sty 
> 2001-01-10 16:51:15.000000000 +0000
> +++ myattachfile.sty	2004-12-05 07:21:06.000000000 +0000
> @@ -245,7 +245,7 @@
> \def\atfi at mimetype{}
> \define at key{AtFi}{mimetype}{%
>   \atfi at pdfstringdef\atfi at mimetype{#1}%
> -  \edef\atfi at mimetype{/Subtype (\atfi at mimetype)}%
> +  \edef\atfi at mimetype{/Subtype /\atfi at mimetype}%
> }
> \define at key{AtFi}{icon}{%
>   \def\atfi at icon{/Name /#1}%

More information about the pdftex mailing list