Settings Help
Comprehensive TeX Archive Network
Home Upload Browse

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

		 | Scott Pakin, |


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 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) 2011 Scott Pakin <>

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 attachfile  <== Produces attachfile.ind (index)
makeindex -s 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 1955 2011-03-27 09:44:13
attachfile.dtx 70163 2011-03-27 09:44:13
attachfile.ins 2107 2011-03-27 09:44:13
attachfile.pdf 375445 2011-03-27 09:44:13

Down­load the com­plete con­tents of this di­rec­tory in one zip archive (349.8k).

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.

Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010 Scott Pakin
Main­tainerScott Pakin
Con­tained inTeXLive as at­tach­file
MiKTeX as at­tach­file
Topics ac­cess PDF fea­tures
See also attachfile2
Guest Book Sitemap Contact 2014-04-18 05:01 CEST