mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PDF Output: Fix extracting text from generated PDFs not working if more than 100 characters per font are used in the text. Fixes #1857886 [Convert epub to pdf, pdf appearance looks correct, but some of the copied text is incorrect](https://bugs.launchpad.net/calibre/+bug/1857886)
This commit is contained in:
parent
3bcf55d571
commit
6b348a0940
@ -799,7 +799,6 @@ class CMap(object):
|
||||
lines = ['1 begincodespacerange', '<{}> <{}>'.format(*map(ashex, (self.start_codespace, self.end_codespace))), 'endcodespacerange']
|
||||
while chars:
|
||||
group, chars = chars[:100], chars[100:]
|
||||
del chars[:100]
|
||||
lines.append('{} beginbfchar'.format(len(group)))
|
||||
for g in group:
|
||||
lines.append('<{}> <{}>'.format(*map(ashex, g)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user