[pdftex] Man page for pdftosrc

Heiko Oberdiek oberdiek at uni-freiburg.de
Mon Aug 15 11:25:12 CEST 2005


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

> On 04.08.05 Heiko Oberdiek (oberdiek at 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 at 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 at preusse:~/t2$ pdftex plain.tex
> This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
> <snip>
> hille at preusse:~/t2$ ./pdftosrc plain.pdf
> pdftosrc version 3.00
> Source file extracted to TeX_sources
> hille at preusse:~/t2$ diff TeX_sources plain.tex
> hille at preusse:~/t2$ pdftk plain.pdf unpack_files output t1/
> hille at preusse:~/t2$ ls -l t1/
> total 0
> hille at preusse:~$ pdftk --version
> 
> pdftk 1.12 a Handy Tool for Manipulating PDF Documents
> <snip>
> hille at 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 at uni-freiburg.de>



More information about the pdftex mailing list