[pdftex] Another request for an enhancement to pdf(La)TeX

André Wobst lists at wobsta.de
Tue Oct 26 12:03:37 CEST 2010

Dear all,

I'm reading the recent discussion with great interest. I have another issue, which happens to be on my TODO list for years, but I never managed to get back to it. The request is related to compiling large PDF files on remote systems. I'll go in some details here; I'm not sure whether to file a bug report instead. If you are curious, just read on.

At the moment it is not possible to stream the output of pdf(La)TeX while it is generated. This is not a problem of having pdf(La)TeX writing its output to a file with a certain name, as you could easily set up a named pipe for that. I already tried this, but the problem is seeking in the PDF being generated, namely when inserting certain streams in the PDF output. The length of the stream is inserted after the stream has been written by leaving some space first and than seeking back to this position once the stream has been written and its size is known. It is in the pdf_begin_stream and pdf_end_stream functions in texk/web2c/pdftexdir/pdftex.web. (It might be that there are other positions as well, but I'm not aware of any other point where such seeks occur.)

Instead of seeking back to fill in the size of the stream, one could insert a reference to another PDF object there and fill the length of the stream in that additional PDF object once the stream has been finished. Unfortunately I'm not able to try and patch pdftex myself as I don't know how to write in the web language, setup a build infrastructure etc.

Do I get any support for this feature request?



by  _ _      _    Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
   / \ \    / )   lists at wobsta.de, http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

More information about the pdftex mailing list