From 9d70d77474dea5d4290597aae2685af2b3566b80 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 19 Sep 2016 21:14:03 +0000
Subject: attachfile (19sep16)

git-svn-id: svn://tug.org/texlive/trunk@42099 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/attachfile/attachfile.sty   | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/attachfile/attachfile.sty')

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}%
-- 
cgit v1.2.3

