pub fn add_object<T: Into<Object>>(&mut self, object: T) -> ObjectId {
        self.max_id += 1;
        let id = (self.max_id, 0);
        self.objects.insert(id, object.into());
        id
    }
/// Add PDF object into document's object list.
Add PDF object into document's object list.
Add PDF object into document ' s object list .
pub fn add_object<T: Into<Object>>(&mut self, object: T) -> ObjectId {
        self.max_id += 1;
        let id = (self.max_id, 0);
        self.objects.insert(id, object.into());
        id
    }
pub fn add_object < T : Into < Object > > ( & mut self , object : T ) -> ObjectId { self . max_id += 1 ; let id = ( self . max_id , 0 ) ; self . objects . insert ( id , object . into ( ) ) ; id }
Add PDF object into document's object list.
Add PDF object into document ' s object list .
&mut self
object
T
&mut self
object
T