Asbjorn Grandt - 2014-02-07 13:40:06 -
In reply to message 1 from Petr ?muchálek
Especially older readers, and dedicated readers had/have limited memory, and the rule of thumb is to limit individual HTML pages to at most 256 kb each.
EPub split on this boundary by default, however you can override this with
$book->setSplitSize($newSplitSize);
The newSplitSize is in bytes.
You could just say $newSplitSize = strlen($data) * 2;
The *2 is simply because EPub may replace links, if the EXTERNAL_REF options are included, exceeding twice the original length will obviously never happen, and it costs nothing to set it that high.
Cheers