pub struct PdfDoc {
pub info: Info,
/* private fields */
}Expand description
A PDF document under construction.
Fields§
§info: InfoImplementations§
Source§impl PdfDoc
impl PdfDoc
pub fn new() -> PdfDoc
Sourcepub fn add_page(&mut self, width_pt: f32, height_pt: f32) -> &mut Page
pub fn add_page(&mut self, width_pt: f32, height_pt: f32) -> &mut Page
Adds a page of width_pt × height_pt points and returns it for drawing.
pub fn page_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfDoc
impl RefUnwindSafe for PdfDoc
impl Send for PdfDoc
impl Sync for PdfDoc
impl Unpin for PdfDoc
impl UnsafeUnpin for PdfDoc
impl UnwindSafe for PdfDoc
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