pub struct MarkedTextRun {
pub run: TextRun,
pub mcid: Option<u32>,
pub page_obj_num: u32,
pub page_index: u32,
}Expand description
One TextRun together with the marked-content tag stack it was
emitted under (ISO 32000-1 §14.6 — Tagged PDF). Round-29 piggybacks
on the same content-stream walker as extract_text; the only
difference is that this variant records the most-recently-opened
BDC block’s /MCID (if any) and the indirect-object number of
the page the run came from. The reading-order layout pass under
crate::reader::layout consumes these to assemble runs in the
order the StructTreeRoot’s /K tree dictates (rather than the
raster x/y order extract_text returns).
Fields§
§run: TextRunThe visual text run — same shape as TextRun.
mcid: Option<u32>Most recently opened marked-content /MCID integer at the moment
of the show. None when no enclosing BDC block declared
/MCID (e.g. plain BMC … EMC decorative groupings).
page_obj_num: u32PDF object number of the page the run came from. The reading-
order layout pass keys MCID lookups by (page_obj_num, mcid)
because a Tagged PDF may emit MCID 0 on every page.
page_index: u32Zero-based page index in walk order (0 for the first page found).
Trait Implementations§
Source§impl Clone for MarkedTextRun
impl Clone for MarkedTextRun
Source§fn clone(&self) -> MarkedTextRun
fn clone(&self) -> MarkedTextRun
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MarkedTextRun
impl Debug for MarkedTextRun
Source§impl PartialEq for MarkedTextRun
impl PartialEq for MarkedTextRun
Source§fn eq(&self, other: &MarkedTextRun) -> bool
fn eq(&self, other: &MarkedTextRun) -> bool
self and other values to be equal, and is used by ==.