pub fn split_document(
doc: &Document,
every: usize,
options: WriteOptions,
) -> Result<Vec<Vec<u8>>>Expand description
Consecutive chunks of every pages, each a fresh document. every must
be at least 1; the last chunk carries whatever remains, so no chunk is
ever empty. Each part is split_part over one of split_runs; call
those directly to build parts one at a time instead of collecting them.