avoid CMap.upr
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@26 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
5b8874ff05
commit
d30248029b
|
@ -24,6 +24,7 @@ def convert_cmap(files, cmapdir, cdbcmapdir, force=False):
|
|||
from cmap import CMapDB
|
||||
CMapDB.initialize(cmapdir)
|
||||
for fname in files:
|
||||
if fname.endswith('.upr'): continue
|
||||
cmapname = os.path.basename(fname)
|
||||
cdbname = os.path.join(cdbcmapdir, cmapname+'.cmap.cdb')
|
||||
if not force and os.path.exists(cdbname):
|
||||
|
|
Loading…
Reference in New Issue