pub struct ParsedContent {
pub root: Group,
pub text_shows: Vec<ContentTextShow>,
pub shadings: Vec<ContentShading>,
pub marked_content: Vec<ContentMarkedContent>,
pub inline_images: Vec<ContentInlineImage>,
}Expand description
Output of parse_content_stream_full — the painted-shapes group
(same as the round-3 / round-125 entry points return) plus the
stream-order list of text-show events the round-128 walker
surfaces when /Resources /Font is plumbed in.
Fields§
§root: GroupPainted-shapes group — identical to the Group returned by
parse_content_stream / parse_content_stream_with_resources.
text_shows: Vec<ContentTextShow>Every Tj/TJ/'/" show, in stream order. Decoding the
raw bytes to Unicode is the caller’s responsibility (the
round-22 crate::reader::text::extract_text walker owns that
path); this surface gives a resource-resolved view of the show
operators for tooling that wants something narrower than the
full text-extraction pipeline.
shadings: Vec<ContentShading>Every name sh shading-paint event surfaced by
parse_content_stream_full_with_shading when
/Resources /Shading is plumbed in. One entry per sh
operator in stream order. Empty when no sh operator fired
or when the legacy entry points (parse_content_stream,
parse_content_stream_with_resources, the no-shading
parse_content_stream_full) are used.
marked_content: Vec<ContentMarkedContent>Every marked-content operator (MP/DP/BMC/BDC/EMC,
§14.6 Table 320) seen by the walker, in stream order. One entry
per operator. Like text_shows and
shadings, these events surface from every
ParsedContent-returning entry point — MP/BMC/EMC carry
no property list, and a DP/BDC whose properties operand is
a /Name simply lands with properties = None unless
/Resources /Properties was plumbed in via
parse_content_stream_full_with_properties. Inline << … >>
property lists are captured regardless of the entry point. The
Group-returning legacy entries (parse_content_stream,
parse_content_stream_with_resources) discard the whole
ParsedContent, so the events are unobservable there.
inline_images: Vec<ContentInlineImage>Every BI … ID … EI inline image (§8.9.7) the walker saw, in
stream order — one entry per inline image, carrying its
resolved dictionary + payload and the CTM / clip in force at
the BI. Surfaced from every ParsedContent-returning entry
point (the resolution needs no /Resources plumbing — an
inline image is self-contained). The Group-returning legacy
entries discard the whole ParsedContent, but they still
consume the BI … EI correctly so the surrounding shapes
survive.
Trait Implementations§
Source§impl Clone for ParsedContent
impl Clone for ParsedContent
Source§fn clone(&self) -> ParsedContent
fn clone(&self) -> ParsedContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more