diff options
author | Karl Berry <karl@freefriends.org> | 2016-09-19 21:14:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-09-19 21:14:03 +0000 |
commit | 9d70d77474dea5d4290597aae2685af2b3566b80 (patch) | |
tree | e358e7a43bbdbde7363adbabc6b6c7ec15a34670 /Master/texmf-dist/tex/latex | |
parent | a28e9e88eda14395c0681874294edc28f6d3bb47 (diff) |
attachfile (19sep16)
git-svn-id: svn://tug.org/texlive/trunk@42099 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/attachfile/attachfile.sty | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty index c7f110aade5..8ba926f85b3 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) 2015 Scott Pakin <scott+af@pakin.org> +%% Copyright (C) 2016 Scott Pakin <scott+af@pakin.org> %% ------------------------------------------------------- %% %% This package may be distributed and/or modified under the @@ -23,7 +23,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{attachfile} - [2015/11/11 v1.8 PDF 1.3+ file attachment] + [2016/09/18 v1.9 PDF 1.3+ file attachment] \RequirePackage{ifpdf} \ifpdf \else @@ -145,9 +145,7 @@ \settowidth{\atfi@appearancewidth}{\usebox{\atfi@appearancebox}}% \settoheight{\atfi@appearanceheight}{\usebox{\atfi@appearancebox}}% \settodepth{\atfi@appearancedepth}{\usebox{\atfi@appearancebox}}% - \immediate\pdfxform attr { - /Subtype /Form - } \atfi@appearancebox + \immediate\pdfxform \atfi@appearancebox \edef\atfi@appearanceobj{\the\pdflastxform}% } \DeclareRobustCommand{\atfi@flags@to@int}{% @@ -169,7 +167,11 @@ \def\noexpand\atfi@file{\atfi@file}% }\next \filename@parse{\atfi@file}% - \edef\atfi@file{\filename@base.\filename@ext}% + \@ifundefined{filename@ext}{% + \edef\atfi@file{\filename@base}% + }{% + \edef\atfi@file{\filename@base.\filename@ext}% + }% \ifatfi@appearance \def\atfi@appearance@dict{% /AP << @@ -207,6 +209,12 @@ \def\atfi@attachfile#1#2{% \setkeys{AtFi}{#1}% \atfi@embedfile{#2}% + \@ifundefined{atfi@acro\atfi@icon@icon}{% + \PackageError{attachfile}{Icon not found}{% + attachfile defines only the following icons:\MessageBreak + Graph, Paperclip, PushPin, Tag + }% + }{}% \atfi@set@appearance{\csname atfi@acro\atfi@icon@icon\endcsname}% \atfi@flags@to@int% \atfi@insert@file@annot{#2}% |