vizia::vg::pdf

Function new_document

pub fn new_document<'a>(
    writer: &'a mut impl Write,
    metadata: Option<&Metadata>,
) -> Document<'a>
Expand description

Create a PDF-backed document.

PDF pages are sized in point units. 1 pt == 1/72 inch == 127/360 mm.

  • metadata - a PDFmetadata object. Any fields may be left empty.

@returns None if there is an error, otherwise a newly created PDF-backed Document.