From b5c336cc046422ec6b8b75be0f12ba52b4137344 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 5 Apr 2015 21:40:08 +0000 Subject: attachfile (5apr15) git-svn-id: svn://tug.org/texlive/trunk@36721 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/attachfile/attachfile.sty | 30 ++++++++++++---------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/tex/latex/attachfile') diff --git a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty index ca566c0e1fe..b0bc8838fb2 100644 --- a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty +++ b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2011 Scott Pakin +%% Copyright (C) 2015 Scott Pakin %% ------------------------------------------------------- %% %% This package may be distributed and/or modified under the @@ -23,7 +23,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{attachfile} - [2011/03/27 v1.5b PDF 1.3+ file attachment] + [2015/04/04 v1.6 PDF 1.3+ file attachment] \RequirePackage{ifpdf} \ifpdf \else @@ -120,17 +120,19 @@ } \newcounter{atfi@tmp} \DeclareRobustCommand{\atfi@embedfile}[1]{% - \immediate\pdfobj stream attr { - /Type /EmbeddedFile - \atfi@mimetype\space - \atfi@dlsize\space - /Params << - \atfi@credate\space - \atfi@moddate\space - \atfi@size\space - >> - } file {#1}% - \edef\atfi@embedfileobj{\the\pdflastobj}% + \expandafter\ifx\csname atfi@embed@file@#1\endcsname\relax + \immediate\pdfobj stream attr { + /Type /EmbeddedFile + \atfi@mimetype\space + \atfi@dlsize\space + /Params << + \atfi@credate\space + \atfi@moddate\space + \atfi@size\space + >> + } file {#1}% + \expandafter\xdef\csname atfi@embed@file@#1\endcsname{\the\pdflastobj}% + \fi } \newlength{\atfi@appearancewidth} \newlength{\atfi@appearanceheight} @@ -190,7 +192,7 @@ /Type /Filespec /F (\atfi@file) /EF << - /F \atfi@embedfileobj\space 0 R + /F \csname atfi@embed@file@#1\endcsname\space 0 R >> >> }% -- cgit v1.2.3