pub struct HybridPartition {
pub hidden: BTreeSet<u32>,
pub stream_unreadable: bool,
}Expand description
Which objects a hybrid-reference file hides, and whether pdfcer could tell
(Pass 281.0).
Travels from load_xref_chain to the writer as one value because the two
facts are only meaningful together: an empty hidden set means “nothing is
hidden” when stream_unreadable is false, and “something is hidden and
pdfcer cannot say what” when it is true. Those two demand opposite
behaviour from a full rewrite — proceed, and refuse — so a caller handed
only the set would have to guess.
Fields§
Object numbers whose winning entry came from the /XRefStm stream —
see LoadedXref::hidden_objects.
stream_unreadable: boolWhether an /XRefStm was named and could not be parsed — see
LoadedXref::hybrid_stream_unreadable.
Implementations§
Source§impl HybridPartition
impl HybridPartition
Sourcepub fn is_reproducible(&self) -> bool
pub fn is_reproducible(&self) -> bool
Whether a full rewrite can reproduce this file’s §7.5.8.4 partition.
false for a file that says it hides objects and whose stream pdfcer
could not read: emitting either side of the partition would be a guess,
and a wrong guess produces a file that opens and is missing an outline
tree or a structure tree with nothing to say so.