Skip to content

Commit c216e6f

Browse files
author
Peter Szabo
committed
checked that all tmp files (with TMP_PREFIX) are removed; added comments about tmp file removal
1 parent 384137d commit c216e6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pdfsizeopt/main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5335,7 +5335,7 @@ def ParseType1CFonts(cls, objs, ps_tmp_file_name, data_tmp_file_name):
53355335

53365336
def ConvertType1FontsToType1C(self):
53375337
"""Convert all Type1 fonts to Type1C in self, returns self."""
5338-
# !! proper tmp prefix
5338+
# GenerateType1CFontsFromType1 removes the tmp files it creates.
53395339
type1c_objs = self.GenerateType1CFontsFromType1(
53405340
self.GetFonts('Type1'), self.objs,
53415341
TMP_PREFIX + 'conv.tmp.ps', TMP_PREFIX + 'conv.tmp.pdf')
@@ -5586,6 +5586,7 @@ def UnifyType1CFonts(self, do_keep_font_optionals,
55865586
print >>sys.stderr, 'info: eliminated %s duplicate /Type1C font data' % (
55875587
duplicate_count)
55885588

5589+
# ParseType1CFonts removes the tmp files it creates.
55895590
parsed_fonts = self.ParseType1CFonts(
55905591
objs=type1c_objs, ps_tmp_file_name=TMP_PREFIX + 'conv.parse.tmp.ps',
55915592
data_tmp_file_name=TMP_PREFIX + 'conv.parsedata.tmp.ps')

0 commit comments

Comments
 (0)