[][src]Struct pdf_create::high::Handle

pub struct Handle<'a> {
    pub info: Info,
    pub pages: Vec<Page<'a>>,
    pub page_labels: NumberTree<PageLabel>,
    pub outline: Outline,
    pub res: Res<'a>,
}

Entrypoint to the high-level API

Create a new handle to start creating a PDF document

Fields

info: Info

The info/metadata

pages: Vec<Page<'a>>

The pages

page_labels: NumberTree<PageLabel>

The settings for page numbering for a PDF viewer

outline: Outline

The outline for a PDF viewer

res: Res<'a>

The global resource struct

Implementations

impl<'a> Handle<'a>[src]

pub fn new() -> Self[src]

Creates a new handle

pub fn write<W: Write>(&self, w: &mut W) -> Result<()>[src]

Write the whole PDF to the given writer

Trait Implementations

impl<'a> Default for Handle<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Handle<'a>

impl<'a> Send for Handle<'a>

impl<'a> Sync for Handle<'a>

impl<'a> Unpin for Handle<'a>

impl<'a> UnwindSafe for Handle<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.