$ pdfsizeopt.py --use-multivalent=no tosubset.pdf
info: This is pdfsizeopt.py r205 size=313767.
info: loading PDF from: tosubset.pdf
info: loaded PDF of 117877 bytes
info: separated to 11 objs + xref + trailer
info: found 1 Type1 fonts loaded
info: writing Type1CConverter (115811 font bytes) to: pso.conv.tmp.ps
info: using Ghostscript gs: GPL Ghostscript 8.71 (2010-02-10)
info: executing Type1CConverter with Ghostscript: gs -q -dNOPAUSE -dBATCH
-sDEVICE=pdfwrite -dPDFSETTINGS=/printer
-dColorConversionStrategy=/LeaveColorUnchanged -sOutputFile=pso.conv.tmp.pdf -f
pso.conv.tmp.ps
Type1CConverter: using interpreter GPL Ghostscript 871 20100210
Type1CConverter: converting font /LMRoman10-Regular to /Obj0000000009
warning: using glyphshow for unencoded glyph: /.notdef
warning: using glyphshow for unencoded glyph: /Ccircumflex
...
warning: using glyphshow for unencoded glyph: /zero.taboldstyle
Type1CConverter: all OK
info: loading PDF from: pso.conv.tmp.pdf
info: loaded PDF of 84854 bytes
info: separated to 55 objs + xref + trailer
error: duplicate font /Obj0000000009 obj old=9 new=35
error: duplicate font /Obj0000000009 obj old=9 new=34
error: duplicate font /Obj0000000009 obj old=9 new=33
error: duplicate font /Obj0000000009 obj old=9 new=32
error: duplicate font /Obj0000000009 obj old=9 new=31
error: duplicate font /Obj0000000009 obj old=9 new=30
error: duplicate font /Obj0000000009 obj old=9 new=29
error: duplicate font /Obj0000000009 obj old=9 new=28
info: found 9 fonts in GS output
Traceback (most recent call last):
File "./pdfsizeopt.py", line 7798, in ?
main(sys.argv)
File "./pdfsizeopt.py", line 7762, in main
pdf.ConvertType1FontsToType1C()
File "./pdfsizeopt.py", line 5097, in ConvertType1FontsToType1C
'pso.conv.tmp.ps', 'pso.conv.tmp.pdf')
File "./pdfsizeopt.py", line 4837, in GenerateType1CFontsFromType1
type1c_objs = pdf.GetFonts(
File "./pdfsizeopt.py", line 4767, in GetFonts
assert not duplicate_count, (
AssertionError: found 8 duplicate font objs in GS output
Original issue reported on code.google.com by pts...@gmail.com on 6 Jul 2012 at 5:04
Original issue reported on code.google.com by
pts...@gmail.com
on 6 Jul 2012 at 5:04Attachments: