Fix writing pdf on stdout #1130

Merged
merged 1 commit into from Aug 26, 2012
Commits on Aug 21, 2012
  1. @jkseppan

    Fix writing pdf on stdout

    jkseppan committed Aug 21, 2012
    Writing on file-like objects broke object cross-references if
    anything else had been written on the same stream before. On Linux
    writing on sys.stdout failed because sys.stdout.tell() raises
    an error; this is worked around by using a BytesIO object.