##// END OF EJS Templates
base64 encode PDF before writing back to the nb structure
Jonathan Frederic -
Show More
@@ -64,7 +64,8 b' class ConvertSvgTransformer(ConvertFiguresTransformer):'
64 64
65 65 #Read output from drive
66 66 if os.path.isfile(output_filename):
67 with open(output_filename) as f:
68 return f.read()
67 with open(output_filename, 'rb') as f:
68 return f.read().encode("base64") #PDF is a nb supported binary
69 #data type, so base64 encode.
69 70 else:
70 71 return TypeError("Inkscape svg to png conversion failed")
General Comments 0
You need to be logged in to leave comments. Login now