pub struct PageBuilder {
pub ops: Vec<Op>,
pub media_box: Option<Rectangle>,
pub crop_box: Option<Rectangle>,
pub trim_box: Option<Rectangle>,
pub resources: Resources,
pub rotate: i32,
pub metadata: Option<Primitive>,
pub lgi: Option<Primitive>,
pub vp: Option<Primitive>,
pub other: Dictionary,
}Fields§
§ops: Vec<Op>§media_box: Option<Rectangle>§crop_box: Option<Rectangle>§trim_box: Option<Rectangle>§resources: Resources§rotate: i32§metadata: Option<Primitive>§lgi: Option<Primitive>§vp: Option<Primitive>§other: DictionaryImplementations§
Source§impl PageBuilder
impl PageBuilder
pub fn from_content( content: Content, resolve: &impl Resolve, ) -> Result<PageBuilder>
pub fn from_page(page: &Page, resolve: &impl Resolve) -> Result<PageBuilder>
pub fn clone_page(page: &Page, cloner: &mut impl Cloner) -> Result<PageBuilder>
pub fn size(&mut self, width: f32, height: f32)
Trait Implementations§
Source§impl Default for PageBuilder
impl Default for PageBuilder
Source§fn default() -> PageBuilder
fn default() -> PageBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PageBuilder
impl RefUnwindSafe for PageBuilder
impl Send for PageBuilder
impl Sync for PageBuilder
impl Unpin for PageBuilder
impl UnwindSafe for PageBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more