attachfile-package - problem when extracting empty file from pdf



Hello!

I notice a problem when in LaTeX2e using the
attachfile-package:

When attaching an empty text-file, after extracting
it from pdf-file, the file is not empty any more.
Also the file-size is different.
Is this an Adobe-Acrobat-5-problem or can it be
resolved within LaTeX?

Ulrich


\documentclass[a4paper]{article}
\usepackage{attachfile}
\newwrite\mywrite
\begin{document}
\immediate\openout\mywrite test.txt\relax
\immediate\write\mywrite{}%
\immediate\closeout\mywrite
\textattachfile[mimetype=text/plain,
color=0 0.6 0,
author=Ulrich Diez,
description=empty text-file]{test.txt}%
{test.txt}%
\end{document}


Here comes the log-file:

This is pdfeTeX, Version 3.141592-1.20a-rc4-2.1 (MiKTeX 2.4)
(preloaded format=latex 2005.11.5) 5 NOV 2005 20:30
entering extended mode
**test.tex
(test.tex
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german, ngerman, du
mylang, nohyphenation, loaded.
(C:\Programme\Texteditors\MiKTeX\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\Programme\Texteditors\MiKTeX\tex\latex\base\size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(C:\Programme\Texteditors\MiKTeX\tex\latex\attachfile\attachfile.sty
Package: attachfile 2005/02/20 v1.2 PDF 1.3+ file attachment

(C:\Programme\Texteditors\MiKTeX\tex\latex\oberdiek\ifpdf.sty
Package: ifpdf 2001/06/14 v1.0 Providing \ifpdf (HO)
Package ifpdf Info: pdfTeX in pdf mode detected on input line 140.
)
(C:\Programme\Texteditors\MiKTeX\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
(C:\Programme\Texteditors\MiKTeX\tex\latex\tools\calc.sty
Package: calc 1998/07/07 v4.1b Infix arithmetic (KKT,FJ)
\calc@Acount=\count87
\calc@Bcount=\count88
\calc@Adimen=\dimen103
\calc@Bdimen=\dimen104
\calc@Askip=\skip43
\calc@Bskip=\skip44
LaTeX Info: Redefining \setlength on input line 59.
LaTeX Info: Redefining \addtolength on input line 60.
\calc@denominator=\count89
)
(C:\Programme\Texteditors\MiKTeX\tex\latex\graphics\color.sty
Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)

(C:\Programme\Texteditors\MiKTeX\tex\latex\00miktex\color.cfg
File: color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
)
Package color Info: Driver file: pdftex.def on input line 125.

(C:\Programme\Texteditors\MiKTeX\tex\latex\graphics\pdftex.def
File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
\Gread@gobject=\count90
))
(C:\Programme\Texteditors\MiKTeX\tex\latex\hyperref\hyperref.sty
Package: hyperref 2003/11/30 v6.74m Hypertext links for LaTeX
\@linkdim=\dimen105
\Hy@linkcounter=\count91
\Hy@pagecounter=\count92

(C:\Programme\Texteditors\MiKTeX\tex\latex\hyperref\pd1enc.def
File: pd1enc.def 2003/11/30 v6.74m Hyperref: PDFDocEncoding definition (HO)
)
(C:\Programme\Texteditors\MiKTeX\tex\latex\00miktex\hyperref.cfg
File: hyperref.cfg 2003/03/08 v1.0 MiKTeX 'hyperref' configuration
)
Package hyperref Info: Hyper figures OFF on input line 1880.
Package hyperref Info: Link nesting OFF on input line 1885.
Package hyperref Info: Hyper index ON on input line 1888.
Package hyperref Info: Plain pages ON on input line 1893.
Package hyperref Info: Backreferencing OFF on input line 1900.

Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 2004.
(C:\Programme\Texteditors\MiKTeX\tex\latex\ltxmisc\url.sty
\Urlmuskip=\muskip10
Package: url 2004/03/15 ver 3.1 Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 2143.
\Fld@menulength=\count93
\Field@Width=\dimen106
\Fld@charsize=\dimen107
\Choice@toks=\toks15
\Field@toks=\toks16
Package hyperref Info: Hyper figures OFF on input line 2618.
Package hyperref Info: Link nesting OFF on input line 2623.
Package hyperref Info: Hyper index ON on input line 2626.
Package hyperref Info: backreferencing OFF on input line 2633.
Package hyperref Info: Link coloring OFF on input line 2638.
\c@Item=\count94
\c@Hfootnote=\count95
)
*hyperref using default driver hpdftex*
(C:\Programme\Texteditors\MiKTeX\tex\latex\hyperref\hpdftex.def
File: hpdftex.def 2003/11/30 v6.74m Hyperref driver for pdfTeX

(C:\Programme\Texteditors\MiKTeX\tex\latex\psnfss\pifont.sty
Package: pifont 2004/01/26 PSNFSS-v9.1b Pi font support (SPQR)
LaTeX Font Info: Try loading font information for U+pzd on input line 63.

(C:\Programme\Texteditors\MiKTeX\tex\latex\psnfss\upzd.fd
File: upzd.fd 2001/06/04 font definitions for U/pzd.
)
LaTeX Font Info: Try loading font information for U+psy on input line 64.

(C:\Programme\Texteditors\MiKTeX\tex\latex\psnfss\upsy.fd
File: upsy.fd 2001/06/04 font definitions for U/psy.
))
\Fld@listcount=\count96
\@outlinefile=\write3
)
\c@atfi@embedfileobj=\count97
\atfi@appearancewidth=\skip45
\atfi@appearanceheight=\skip46
\atfi@appearancedepth=\skip47
\c@atfi@appearanceobj=\count98
\atfi@appearancebox=\box26
\c@atfi@flags=\count99
\c@atfi@hours=\count100
\c@atfi@minutes=\count101
)
\mywrite=\write4

No file test.aux.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
(C:\Programme\Texteditors\MiKTeX\tex\context\base\supp-pdf.tex
(C:\Programme\Texteditors\MiKTeX\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous
\protectiondepth=\count102
\scratchcounter=\count103
\scratchtoks=\toks17
\scratchdimen=\dimen108
\scratchskip=\skip48
\scratchmuskip=\muskip11
\scratchbox=\box27
\scratchread=\read1
\scratchwrite=\write5
\zeropoint=\dimen109
\onepoint=\dimen110
\onebasepoint=\dimen111
\minusone=\count104
\thousandpoint=\dimen112
\emptytoks=\toks18
\nextbox=\box28
\nextdepth=\dimen113
\everyline=\toks19
\!!counta=\count105
\!!countb=\count106
\recursecounter=\count107
)
loading : Context Support Macros / PDF (2004.03.26)
\nofMPsegments=\count108
\nofMParguments=\count109
\everyMPtoPDFconversion=\toks20
)
Package hyperref Info: Link coloring OFF on input line 4.
(C:\Programme\Texteditors\MiKTeX\tex\latex\hyperref\nameref.sty
Package: nameref 2003/12/03 v2.21 Cross-referencing by name of section
\c@section@level=\count110
)
LaTeX Info: Redefining \ref on input line 4.
LaTeX Info: Redefining \pageref on input line 4.
<<test.txt>>{psfonts.map} [1

] (test.aux) )
Here is how much of TeX's memory you used:
2644 strings out of 95509
34727 string characters out of 1188904
84928 words of memory out of 1088705
5716 multiletter control sequences out of 35000
4330 words of font info for 16 fonts, out of 500000 for 1000
14 hyphenation exceptions out of 607
34i,5n,23p,210b,253s stack positions out of 1500i,500n,5000p,200000b,32768s
18 PDF objects out of 300000
2 named destinations out of 300000
27 words of extra memory for PDF output out of 65536
<C:\Programme\Texteditors\MiKTeX\fonts\type1\bluesky\cm\cmr10.pfb
>
Output written on test.pdf (1 page, 6536 bytes).


.



Relevant Pages

  • Re: Restating theorems?
    ... Redefining \overline on input line 307. ... LaTeX Font Info: Redeclaring font encoding OML on input line 567. ... Package hyperref Info: Hyper figures OFF on input line 1880. ... okay on input line 105. ...
    (comp.text.tex)
  • Re: MikTeX 2.5: algorithmic + hyperref = no PDFLaTeX?
    ... Babel and hyphenation patterns for english, dumylang, ... LaTeX Font Info: Redeclaring font encoding T1 on input line 43. ... Package hyperref Info: Hyper figures OFF on input line 2118. ... okay on input line 15. ...
    (comp.text.tex)
  • Re: Installing texlive under Fedora 17.
    ... See the hypdestopt package documentation for explanation. ... Package hyperref Info: Option `setpagesize' set `false' on input line 2238. ... Package xcolor Info: Package option `override' ignored on input line 216. ... LaTeX Font Info: ... ...
    (Fedora)
  • Re: amsmath + hyperref problem when using subequations
    ... Redefining \overline on input line 307. ... LaTeX Font Info: Redeclaring font encoding OML on input line 567. ... umsa.fd 2002/01/19 v2.2g AMS font definitions ... Package hyperref Info: Hyper figures OFF on input line 2907. ...
    (comp.text.tex)
  • ellipsis with xspace and hyperref conflict (minimal example)
    ... Package hyperref Info: Hyper figures OFF on input line 1880. ... Redefining \url on input line 2143. ... LaTeX Font Info: Try loading font information for U+pzd on input line 63. ... okay on input line 8. ...
    (comp.text.tex)