Please sign in to comment.
Fix writing pdf on stdout
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.
- Loading branch information...
Showing with 15 additions and 4 deletions.