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
All doc types 393,568

EPub and HTML share a lot of code (and both pull in the Harfbuzz library).

Font sizes

Base14 +817,792 The basic 14 fonts needed for PDF
Noto CJK +3,864,760 Basic CJK coverage from Android
Noto CJK Ext A +1,551,048 Extended CJK coverage from Android
Noto +4,452,224 Noto fonts for many languages/scripts
Noto Emoji +418,880 Noto Emoji font
Noto Historic +1,358,720 Noto fonts for Historic/Ancient scripts/languages
Noto Symbol +846,016 Noto Symbol font
SIL +557,688 Charis SIL font (Used for a default EPUB font)
All fonts 13,867,128 Total of all the above

CMAP sizes

If we are using CJK then we need another 963,256 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).

Greyscale RGB CMYK N
3,704 12,288 7,800 7,800

These figures reflect the fact that we have more optimised cases for RGB and Greyscale plotters than for CMYK and N.

Raw measurements

  • Core Size : 1481368

  • 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
  • All docs: 393568

  • CMaps : 963256

  • Base 14 : 817792
  • CJK : 3864760
  • CJK ExtA : 1551048
  • SIL : 557688
  • Noto (Basics): 4452224
  • Emoji : 418880
  • Historic : 1358720
  • Symbol : 846016
  • All fonts : 13867128

  • Xmas: 16702272

-- Robin Watts - 2016-05-30

Comments

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r6 - 2016-06-02 - RobinWatts
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2014 Artifex Software Inc