[−][src]Struct printpdf::types::pdf_page::PdfPage
PDF page
Fields
width: Pt
page width in point
height: Pt
page height in point
layers: Vec<PdfLayer>
Page layers
Methods
impl PdfPage
[src]
pub fn new<S>(
width: Mm,
height: Mm,
layer_name: S,
page_index: usize
) -> (Self, PdfLayerIndex) where
S: Into<String>,
[src]
width: Mm,
height: Mm,
layer_name: S,
page_index: usize
) -> (Self, PdfLayerIndex) where
S: Into<String>,
Create a new page, notice that width / height are in millimeter. Page must contain at least one layer
pub fn add_graphics_state(
&mut self,
added_state: ExtendedGraphicsState
) -> ExtendedGraphicsStateRef
[src]
&mut self,
added_state: ExtendedGraphicsState
) -> ExtendedGraphicsStateRef
Change the graphics state. Before this operation is done, you should save
the graphics state using the save_graphics_state()
function. This will change the
current graphics state until the end of the page or until the page is reset to the
previous state.
Returns the old graphics state, in case it was overwritten, as well as a reference
to the currently active graphics state
pub fn add_pattern(&mut self, pattern: Pattern) -> PatternRef
[src]
STUB: Adds a pattern to the pages resources
pub fn add_xobject(&mut self, xobj: XObject) -> XObjectRef
[src]
STUB: Adds an XObject to the pages resources. NOTE: Watch out for scaling. Your XObject might be invisible or only 1pt x 1pt big
Trait Implementations
impl Clone for PdfPage
[src]
fn clone(&self) -> PdfPage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PdfPage
[src]
Auto Trait Implementations
impl Sync for PdfPage
impl Send for PdfPage
impl Unpin for PdfPage
impl RefUnwindSafe for PdfPage
impl UnwindSafe for PdfPage
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.