Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/latex/contrib/attachfile

		 | Scott Pakin, scott+af@pakin.org |


Starting with PDF 1.3 (Adobe Acrobat 4.0), PDF files can contain file
attachments -- arbitrary files that a reader can extract, just like
attachments to an e-mail message.  The attachfile package brings this
functionality to pdfLaTeX and LuaLaTeX and provides some additional
features not available in Acrobat, such as the ability to use
arbitrary LaTeX code for the file icon -- including things like
\includegraphics, tabular, and math.  Settings can be made either
globally or on a per-attachment basis.  attachfile makes it easy to
attach files and customize their appearance in the enclosing document.

Copyright and license

Copyright (C) 2015 Scott Pakin <scott+af@pakin.org>

This package may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c of this
license or (at your option) any later version.  The latest version of
this license is in:


and version 1.3c or later is part of all distributions of LaTeX
version 2006/05/20 or later.

Building attachfile
and its documentation

tex attachfile.ins       <== Produces attachfile.sty (the package proper)
pdflatex attachfile.dtx  <== Produces attachfile.pdf (documentation)
makeindex -s gind.ist attachfile  <== Produces attachfile.ind (index)
makeindex -s gglo.ist attachfile.glo -o attachfile.gls  <== (change log)
pdflatex attachfile.dtx  <== Merges index + change log into the documentation
pdflatex attachfile.dtx  <== Produces final version of attachfile.pdf

Note that attachfile comes with pre-built documentation (PDF format,
U.S. letter-sized paper), so you really need to perform only the first
step above unless you're unhappy with the documentation as provided.


Name Size Date Notes
README 1968 2015-11-11 22:26
at­tach­file.dtx 71827 2015-11-11 22:26
at­tach­file.ins 2107 2015-11-11 22:26
at­tach­file.pdf 359230 2015-11-11 22:26

Down­load the con­tents of this pack­age in one zip archive (357.0k).

at­tach­file – At­tach ar­bi­trary files to a PDF doc­u­ment

Start­ing with PDF 1.3 (Adobe Acro­bat 4.0), PDF files can con­tain file at­tach­ments — ar­bi­trary files that a reader can ex­tract, just like at­tach­ments to an e-mail mes­sage. The at­tach­file pack­age brings this func­tion­al­ity to pdfLaTeX and pro­vides some ad­di­tional fea­tures not avail­able in Acro­bat, such as the abil­ity to use ar­bi­trary LaTeX code for the file icon — in­clud­ing things like \in­clude­graph­ics, tab­u­lar, and math­e­mat­ics. Set­tings can be made ei­ther glob­ally or on a per-at­tach­ment ba­sis. At­tach­file makes it easy to at­tach files and cus­tomize their ap­pear­ance in the en­clos­ing doc­u­ment.

The pack­age sup­ports the Created, Mod­i­fied, and Size keys in the Embed­dedFile’s Params dic­tio­nary.

Pack­age De­tailsat­tach­file
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010,2015 Scott Pakin
Main­tainerScott Pakin
TDS archiveattachfile.tds.zip
Con­tained inTeX Live as at­tach­file
MiKTeX as at­tach­file
Topics ac­cess PDF fea­tures
See also attachfile2
Guest Book Sitemap Contact Contact Author