pub struct PdfTextIsland {
pub id: String,
pub text: String,
pub quads: Vec<[f64; 8]>,
pub baseline: [f64; 4],
pub appearance: PdfTextAppearance,
pub locator: PdfSourceLocator,
pub editable: bool,
pub rejection: Option<PdfEditError>,
pub edit_blocker: Option<PdfEditBlocker>,
pub substitution_editable: bool,
pub gaps: Vec<PdfTextGap>,
/* private fields */
}Fields§
§id: String§text: String§quads: Vec<[f64; 8]>§baseline: [f64; 4]§appearance: PdfTextAppearance§locator: PdfSourceLocator§editable: boolTrue when a replacement can be written through the island’s own font (same appearance).
This is the same decision compose_candidate makes; the two cannot disagree. It does not
promise that every text is encodable: a replacement needing a glyph the font lacks fails
with PdfEditError::MissingGlyphs.
rejection: Option<PdfEditError>Some(UnsupportedEncoding) whenever editable is false.
edit_blocker: Option<PdfEditBlocker>Typed reason when editable is false (additive; null when editable).
substitution_editable: boolTrue when the island’s source glyphs can be removed and the text redrawn in a catalog font
(a changed appearance), whatever the source font - and the composer will accept that edit.
False for a rejected island and for an island whose source glyphs live in more than one
content stream (edit_blocker is then spans_across_streams): the composer removes the
old glyphs from one stream only, so it refuses that edit.
gaps: Vec<PdfTextGap>Synthesised word gaps inside text (additive; empty when the run has real spaces only).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfTextIsland
impl RefUnwindSafe for PdfTextIsland
impl Send for PdfTextIsland
impl Sync for PdfTextIsland
impl Unpin for PdfTextIsland
impl UnsafeUnpin for PdfTextIsland
impl UnwindSafe for PdfTextIsland
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.