Invalid (trancated) PDFs in Web application

Torsten Bronger <bronger@...669...> writes:

Thus, this is the trailing part which is missing:
http://www-users.rwth-aachen.de/torsten.bronger/pds_missing.txt

Does anybody has an idea at which point and why Matplotlib stops
working?

The missing parts are the xref table and the trailer, which are written
by functions called by close():

    def close(self):
        # End the content stream and write out the various deferred
        # objects
        self.endStream()
  ...
        self.writeImages()
        self.writeMarkers()
        self.writeXref()
        self.writeTrailer()
        if not self.passed_in_file_object:
            self.fh.close()

So it looks like writeMarkers() has been called but writeXref() has not.

···

--
Jouni K. Sepp�nen
http://www.iki.fi/jks