From: Raphael Michel Date: Tue, 30 Oct 2018 13:37:10 +0000 (+0100) Subject: Return a proper bytestring X-Git-Tag: 1.1.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf59336921efab99b9e2ba41d96aa4609c60f175;p=thirdparty%2Fpython-drafthorse.git Return a proper bytestring --- diff --git a/drafthorse/pdf.py b/drafthorse/pdf.py index df18cf6..4006492 100644 --- a/drafthorse/pdf.py +++ b/drafthorse/pdf.py @@ -61,7 +61,7 @@ def attach_xml(original_pdf, xml_data, level='BASIC'): outbuffer = BytesIO() output.write(outbuffer) outbuffer.seek(0) - return outbuffer + return outbuffer.read() def _get_original_output_intents(original_pdf):