]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commitdiff
Return a proper bytestring
authorRaphael Michel <mail@raphaelmichel.de>
Tue, 30 Oct 2018 13:37:10 +0000 (14:37 +0100)
committerRaphael Michel <mail@raphaelmichel.de>
Fri, 2 Nov 2018 11:36:48 +0000 (12:36 +0100)
drafthorse/pdf.py

index df18cf68bbe9f3db8b322ac294589c666b128df7..4006492261aba464362955094ce0a98926f0b16f 100644 (file)
@@ -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):