[poppler] Fwd: Too many fonts embedded in a document?

James Cloos cloos at jhcloos.com
Sun Jun 2 05:02:24 PDT 2013


>>>>> "WB" == William Bader <williambader at hotmail.com> writes:

WB> I thought that rasterization was all or nothing and that rasterized
WB> pages didn't need any fonts.

I jumped to a false conclusion.  Adding -r300 does not change the
resulting ps.

There are images in the ps, but they are due to small images in the
pdf.  mupdfinfo shows 201 images, all 2x1, 1x2 or 1x1, all 8bpc ICC.
mupdfclean -d produces an uncompressed pdf where one sees that the
images look like:

4 0 obj
<<
  /BitsPerComponent 8
  /ColorSpace 220 0 R
  /Height 2
  /Length 6
  /Name /X
  /Subtype /Image
  /Type /XObject
  /Width 1
>>
stream
<BF><BF><BF>PP[endstream
endobj

220 0 obj
[ /ICCBased 726 0 R ]
endobj

where object 726 0 is te sRGB ICC profile.

It also shows that the 201 images have a total of 6914 names.

The intitial post says splash embeds 168 font objects in the ps, vs ~30
or so (I forget what he wrote) in the older version.  The 168 matches
what I see with master.

pdffonts shows seven embedded font objects and 84 non-embeddd;
mupdfinfo, OTOH, shows eleven font objects (the seven above, plus
the objects for the four faces of TimesNewRomanPSMT).

This also is interesting:

:; egrep -n '^%%BeginResource:' P020110106297943134404.ps3
11:%%BeginResource: procset xpdf 3.00 0
505:%%BeginResource: font UCNKSK+KaiTi_GB2312
2482:%%BeginResource: font EELNCQ+WJXBS
9481:%%BeginResource: font PFYBAU+WJKT
17608:%%BeginResource: font ZCWJKA+WJCFS
27185:%%BeginResource: font ECKICQ+STFangsong
35253:%%BeginResource: font PDXWAU+SimSun
42384:%%BeginResource: font ZFVZKA+SimSun
48488:%%BeginResource: font SimSun
277513:%%BeginResource: font FF1160_0_SimSun
506538:%%BeginResource: font FF1166_0_SimSun
735529:%%BeginResource: font FF1172_0_SimSun
964520:%%BeginResource: font FF1178_0_SimSun
1193511:%%BeginResource: font FF1184_0_SimSun
1422502:%%BeginResource: font FF1190_0_SimSun
1651493:%%BeginResource: font FF1196_0_SimSun
1880484:%%BeginResource: font FF1202_0_SimSun
2109475:%%BeginResource: font FF1208_0_SimSun
2338466:%%BeginResource: font FF1214_0_SimSun
2567457:%%BeginResource: font FF1220_0_SimSun
2796448:%%BeginResource: font FF1226_0_SimSun
3025439:%%BeginResource: font FF1232_0_SimSun
3254430:%%BeginResource: font FF1238_0_SimSun
3483421:%%BeginResource: font FF1244_0_SimSun
3712412:%%BeginResource: font FF1250_0_SimSun
3941403:%%BeginResource: font FF1256_0_SimSun
4170394:%%BeginResource: font FF1262_0_SimSun
4399385:%%BeginResource: font FF1268_0_SimSun
4628376:%%BeginResource: font FF1274_0_SimSun
4857367:%%BeginResource: font FF1280_0_SimSun
5086358:%%BeginResource: font FF1286_0_SimSun
5315349:%%BeginResource: font FF1292_0_SimSun
5544340:%%BeginResource: font FF1298_0_SimSun
5773331:%%BeginResource: font FF1304_0_SimSun
6002322:%%BeginResource: font FF1310_0_SimSun
6231313:%%BeginResource: font FF1316_0_SimSun
6460304:%%BeginResource: font FF1322_0_SimSun
6689295:%%BeginResource: font FF1328_0_SimSun
6918286:%%BeginResource: font FF1334_0_SimSun
7147277:%%BeginResource: font FF1340_0_SimSun
7376268:%%BeginResource: font FF1346_0_SimSun
7605259:%%BeginResource: font FF1352_0_SimSun
7834250:%%BeginResource: font FF1358_0_SimSun
8063241:%%BeginResource: font FF1364_0_SimSun
8292232:%%BeginResource: font FF1370_0_SimSun
8521223:%%BeginResource: font FF1376_0_SimSun
8750214:%%BeginResource: font FF1382_0_SimSun
8979205:%%BeginResource: font FF1388_0_SimSun
9208196:%%BeginResource: font FF1394_0_SimSun
9437187:%%BeginResource: font FF1400_0_SimSun
9666178:%%BeginResource: font FF1406_0_SimSun
9895169:%%BeginResource: font FF1412_0_SimSun
10124160:%%BeginResource: font FF1418_0_SimSun
10353151:%%BeginResource: font FF1425_0_SimSun
10582176:%%BeginResource: font FF1431_0_SimSun
10811167:%%BeginResource: font FF1437_0_SimSun
11040158:%%BeginResource: font FF1443_0_SimSun
11269149:%%BeginResource: font FF1449_0_SimSun
11498140:%%BeginResource: font FF1455_0_SimSun
11727131:%%BeginResource: font FF1461_0_SimSun
11956122:%%BeginResource: font FF1467_0_SimSun
12185113:%%BeginResource: font FF1473_0_SimSun
12414104:%%BeginResource: font FF1479_0_SimSun
12643095:%%BeginResource: font FF1485_0_SimSun
12872086:%%BeginResource: font FF1491_0_SimSun
13101077:%%BeginResource: font FF1497_0_SimSun
13330068:%%BeginResource: font FF1503_0_SimSun
13559059:%%BeginResource: font FF1509_0_SimSun
13788050:%%BeginResource: font FF1515_0_SimSun
14017041:%%BeginResource: font FF1521_0_SimSun
14246032:%%BeginResource: font FF1527_0_SimSun
14475023:%%BeginResource: font FF1533_0_SimSun
14704014:%%BeginResource: font FF1539_0_SimSun
14933005:%%BeginResource: font FF1545_0_SimSun
15161996:%%BeginResource: font FF1551_0_SimSun
15390987:%%BeginResource: font FF1557_0_SimSun
15619978:%%BeginResource: font FF1563_0_SimSun
15848969:%%BeginResource: font FF1569_0_SimSun
16077960:%%BeginResource: font FF1575_0_SimSun
16306951:%%BeginResource: font FF1581_0_SimSun
16535942:%%BeginResource: font FF1587_0_SimSun
16764933:%%BeginResource: font FF1593_0_SimSun
16993924:%%BeginResource: font FF1599_0_SimSun
17222915:%%BeginResource: font FF1605_0_SimSun
17451906:%%BeginResource: font FF1611_0_SimSun
17680897:%%BeginResource: font FF790_0_SimSun

It seems to embed a full copy of SimSun for each call, where it should
be using the embeded PDXWAU+SimSun and/or ZFVZKA+SimSun for each of those.

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the poppler mailing list