From bf59336921efab99b9e2ba41d96aa4609c60f175 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 30 Oct 2018 14:37:10 +0100 Subject: [PATCH] Return a proper bytestring --- drafthorse/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.47.3