//! The document's XMP metadata packet, as bytes.
//!
//! There is no XML parsing here and none is planned. Upstream's only use of
//! `/Metadata` is a scan for an Acrobat shared-review workflow marker, whose
//! sole consumer prints an "unsupported feature" line to **stderr** — it
//! reaches no output any consumer diffs. Callers that want the packet's
//! contents parse it themselves.
use ;
use ;
use cratenames;
/// The catalog's `/Metadata` stream, decoded.
///
/// Returns nothing when the key is absent or does not hold a stream.
///
/// ```
/// use pdfrum_common::{Diagnostics, Limits};
/// use pdfrum_doc::xmp;
/// use pdfrum_object::{Dict, NoResolve};
///
/// let (limits, mut diags) = (Limits::default(), Diagnostics::default());
/// // Absent, or not holding a stream: nothing.
/// assert!(xmp(&Dict::default(), &NoResolve, &limits, &mut diags).is_none());
/// ```