pub fn append_documents(
a: &[u8],
b: &[u8],
options: &AppendOptions,
) -> Result<Appended, AppendError>Expand description
Append B’s body after A’s.
Both inputs pass admission and are normalized from Strict. B’s body
(without its final section properties) is copied before A’s final
section properties; B’s relationships, the styles and lists its content
uses, and its footnotes and endnotes are carried with fresh ids, and
drawing ids are renumbered. B’s comments are removed and reported in
Appended::warnings, or carried with AppendComments::Carry.
§Errors
AppendError::Admission when either input breaks an admission budget or
rule, AppendError::Package when a package cannot be read or written,
AppendError::Invalid when a main document part is missing or is not a
WordprocessingML document.