Fix a regression that broke PDF output

This commit is contained in:
Kovid Goyal 2019-04-19 17:38:23 +05:30
parent 2d34c8a9ed
commit 423e061719
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -62,10 +62,10 @@ class FontStream(Stream):
def to_hex_string(c):
ans = hex(int(c))[2:].rjust(4, '0')
ans = hex(int(c))[2:]
if isinstance(ans, bytes):
ans = ans.decode('ascii')
return ans
return ans.rjust(4, '0')
class CMap(Stream):