pub struct Page {
    pub width: i16,
    pub height: i16,
    pub os: Vec<u8>,
    pub ts: Vec<u8>,
    pub text: Vec<u8>,
    pub x: i16,
    pub y: i16,
    pub sup: i16,
    pub fonts: BTreeSet<usize>,
    pub xobjs: BTreeSet<usize>,
    /* private fields */
}
Expand description

Fields

width: i16

Page width.

height: i16

Page height.

os: Vec<u8>

Output buffer.

ts: Vec<u8>

Text stream.

text: Vec<u8>

Current text buffer.

x: i16

Current line position ( from left of page ).

y: i16

Current line position ( from bottom of page ).

sup: i16

Current super

fonts: BTreeSet<usize>

Set of font obj numbers used by page.

xobjs: BTreeSet<usize>

Set of other obj numbers used by page.

Implementations

Start a new line ( absolute position ).

Start a new line ( relative to previous line ).

Append text ( encoded with font ).

Finish page by appending self.ts to self.os enclosed by “BT” and “ET”.

Draw a line from (x0,y0) to (x1,y1)

Draw a rectangle with corners (x0,y0) to (x1,y1)

Set level of text on line.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.