MuPDF Build Sizes
As built on Raspberry PI 3, sizes of Mutool stripped.
The basic size for the
MuPDF core is 1,481,368. (1.4Meg)
The maximum size it builds to is 16,702,272. (16.7Meg). The actual size lies somewhere between.
To estimate an upper bound on the size required, start with the core size, and add in various other components to customise our build.
Document handlers
We will need at least 1 document handler:
PDF |
+32,928 |
XPS |
+57,824 |
SVG |
+22,968 |
CBZ |
+8,232 |
IMG |
+864 |
TIFF |
+768 |
EPUB |
+286,208 |
HTML |
+291,256 |
Font sizes
Base14 |
+819,216 |
The basic 14 fonts needed for PDF |
Noto CJK |
+3,862,528 |
Basic CJK coverage from Android |
Noto CJK Ext A |
+1,552,384 |
Extended CJK coverage from Android |
Noto |
+4,452,352 |
Noto fonts for many languages/scripts |
Noto Emoji |
+417,792 |
Noto Emoji font |
Noto Historic |
+1,359,872 |
Noto fonts for Historic/Ancient scripts/languages |
Noto Symbol |
+844,304 |
Noto Symbol font |
SIL |
+560,256 |
Charis SIL font (Used for a default EPUB font) |
All fonts |
13,869,059 |
Total of all the above |
CMAP sizes
If we are using CJK then we need another 962,416 bytes for CMAPs. (Or 1.9Meg for 'full' CMAPs).
Plotter sizes
We can tune what plotters we build into the code. Only build in the ones required for a given output colorspace (i.e. a mono printer would build in just G, a color laser might build in CMYK, or maybe CMYK + G if it wanted a fast black and white mode).
These figures reflect the fact that we have more optimised cases for RGB and Greyscale plotters than for CMYK and N.
Raw measurements
- G Plotters : 3704
- RGB Plotters : 12288
- CMYK Plotters: 7800
- N Plotters : 7800
- PDF : 32928
- XPS : 57824
- SVG : 22968
- CBZ : 8232
- IMG : 864
- TIFF: 768
- HTML: 286208
- EPUB: 291256
- Base 14 : 819216
- CMaps : 962416
- CJK : 3862528
- CJK ExtA: 1552384
- SIL : 360
- Emoji : 4869784
- Historic: 1359872
- Symbol : 844304
- PDF only, Greyscale plotters: 17,435,788
- PDF only, Greyscale + RGB plotters: 17,471,756 (RGB plotters cost 35,968)
- PDF only, Greyscale + RGB + CMYK plotters: 17,479,948 (CMYK plotters cost 8192)
- PDF only, RGB plotters: 17,459,468 (Greyscale plotters cost 12,288)
- PDF only, no plotters: 17,423,500 (Calculated value)
- PDF only, Greyscale + RGB + CMYK + N plotters: 17,488,140 (N plotters cost 8192)
- PDF only, Greyscale Plotters, NO FONTS: 4,126,988
- PDF only, No Plotters, NO FONTS: 4,114,700 (Calculated value)
- PDF only, Greyscale Plotters, Base 14 fonts: 4,946,188 (Base 14 fonts cost 819200)
- PDF only, Greyscale Plotters, All fonts: 17,996044 (All fonts cost 13,869,059)
- PDF only, Greyscale Plotters, All fonts - SIL: 17,435,788 (SIL costs 560,256)
- PDF only, Greyscale Plotters, All fonts - SIL - symbol:16,591,116 (Symbol costs 844,672)
- PDF only, Greyscale Plotters, All fonts - SIL - symbol - historic: 15,231,244 (Historic costs 1,359,872)
- PDF only, Greyscale Plotters, All fonts - SIL - symbol - historic - emoji: 14,813,452 (Emoji costs 417,792)
- PDF only, Greyscale Plotters, All fonts - SIL - symbol - historic - emoji - noto: 10,361,100 (Noto costs 4,452,352)
- PDF only, Greyscale Plotters, All fonts - SIL - symbol - historic - emoji - noto - cjkexta: 8,809,036 (Noto CJK Ext A costs 1,552,064)
- PDF only, Greyscale Plotters, All fonts - SIL - symbol - historic - emoji - noto - cjkexta -cjk: 4,946188 (Noto CJK costs 3,862,848)
- PDF only, Greyscale Plotters, NO FONTS: 4,126,988
- PDF+XPS, Greyscale Plotters, NO FONTS: 4,184,652 (XPS costs 57,664)
- XPS only, Greyscale Plotters, NO FONTS: 4,184,620 (PDF costs 32 bytes!
)
- PDF+XPS+SVG, Greyscale Plotters, NO FONTS: 4,204,020 (SVG costs 19,400)
- PDF+XPS+SVG+CBZ, Greyscale Plotters, NO FONTS: 4,206,036 (CBZ costs 2,016)
- PDF+XPS+SVG+CBZ+IMG, Greyscale Plotters, NO FONTS: 4,207,876 (IMG costs 1,000)
- PDF+XPS+SVG+CBZ+IMG+TIFF, Greyscale Plotters, NO FONTS: 4,209,428 (TIFF costs 1,552)
- PDF+XPS+SVG+CBZ+IMG+TIFF+Epub, Greyscale Plotters, NO FONTS: 4,273,556 (Epub costs 64,128)
- PDF+XPS+SVG+CBZ+IMG+TIFF+Epub+HTML, Greyscale Plotters, NO FONTS: 4,274,420 (Html costs 864)
- PDF only, Greyscale Plotters, NO FONTS: 4,126,988
- PDF only, Greyscale Plotters, NO FONTS+NO CMAPS: 2,209,908 (CMAPS cost 1,917,080)
--
Robin Watts - 2016-05-30
Comments