pub fn sheets_within(
bytes: &[u8],
max_text_bytes: usize,
) -> Result<Vec<Sheet>, LogError>Expand description
Each worksheet of an .xlsx workbook as text, in the workbook’s order of sheets, keeping at
most max_text_bytes from the whole workbook: its shared strings, 4 bytes more each, and the
sheets’ text.
§Errors
LogError::NotThisFormat when the bytes aren’t a zip archive, or the archive holds no
SpreadsheetML workbook (a word processor’s .docx, say); LogError::Archive as
archive::unpack; LogError::Workbook when a part the workbook names is missing or isn’t
well-formed XML, holds a document type declaration or a reference to an entity, cells or rows
come out of order or past XFD1048576, a cell’s value isn’t what its type says (a number that
isn’t one, a shared string that isn’t there), two sheets share a part, a part read whole is
larger than MAX_SMALL_PART_BYTES, a cell holds two values, or the shared strings and text
would pass max_text_bytes.