[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#215248: [pdftex] Man page for pdftosrc



On Mon, Aug 15, 2005 at 10:31:35AM +0200, Hilmar Preusse wrote:

> On 04.08.05 Heiko Oberdiek (oberdiek@uni-freiburg.de) wrote:
> > On Wed, Aug 03, 2005 at 10:02:31PM +0200, Reinhard Kotucha wrote:
> 
> Hi all,
> 
> [man page of pdftosrc]
> > 
> > > there are many reasons not to regard pdftosrc as obsolete.
> > > 
> > > Adobe does not support all platforms, so there are many people
> > > who have to use xpdf instead.
> > 
> > The attachted files can also be extracted by other tools such
> > as pdftk (operation unpack_files).
> > 
> Hmm:
> 
> hille@preusse:~/t2$ more plain.tex
> \pdfcompresslevel=0
> \immediate\pdfobj
>   stream attr {/Type /SourceFile /SourceName
>   (TeX_sources)} file{\jobname.tex}
> \pdfcatalog{/SourceObject \the\pdflastobj\space 0 R}
> a
> \bye
> hille@preusse:~/t2$ pdftex plain.tex
> This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
> <snip>
> hille@preusse:~/t2$ ./pdftosrc plain.pdf
> pdftosrc version 3.00
> Source file extracted to TeX_sources
> hille@preusse:~/t2$ diff TeX_sources plain.tex
> hille@preusse:~/t2$ pdftk plain.pdf unpack_files output t1/
> hille@preusse:~/t2$ ls -l t1/
> total 0
> hille@preusse:~$ pdftk --version
> 
> pdftk 1.12 a Handy Tool for Manipulating PDF Documents
> <snip>
> hille@preusse:~$
> 
> What am I missing?

A lot, use attachfile.sty or look into the PDF specification
for attaching files. Your example will not even work with AR.

Yours sincerely
  Heiko <oberdiek@uni-freiburg.de>



Reply to: