Struct pdfpdf::Pdf [] [src]

pub struct Pdf { /* fields omitted */ }

The top-level struct that represents a (partially) in-memory PDF file

Methods

impl Pdf
[src]

[src]

Create a new blank PDF document

[src]

Create a new blank PDF document without compression

[src]

Set the current line width

[src]

Set the color for all subsequent drawing operations

[src]

Apply a coordinate transformation to all subsequent drawing calls Consecutive applications of this function are cumulative

[src]

Draw a circle with the current drawing configuration, based on http://spencermortensen.com/articles/bezier-circle/

[src]

Draw a line between all these points in the order they appear

[src]

Draw a rectangle that extends from x1, y1 to x2, y2

[src]

Set the font for all subsequent drawing calls

[src]

Draw text at a given location with the current settings

[src]

Move to a new page in the PDF document

[src]

Write the in-memory PDF representation to disk