Struct pdf_writer::Obj [−][src]
pub struct Obj<'a> { /* fields omitted */ }
Expand description
Writer for an arbitrary object.
Implementations
Start writing with an arbitrary writer.
For example, using this, you could write a Type 1 font directly into a page’s resource directionary.
use pdf_writer::{PdfWriter, Ref, Name, writers::Type1Font};
let mut w = PdfWriter::new();
w.page(Ref::new(1))
.resources()
.fonts()
.insert(Name(b"F1"))
.start::<Type1Font>()
.base_font(Name(b"Helvetica"));