pub fn change_producer(&mut self, producer: &str) {
        if let Ok(info) = self.trailer.get_mut(b"Info") {
            if let Some(dict) = match *info {
                Object::Dictionary(ref mut dict) => Some(dict),
                Object::Reference(ref id) => self.objects.get_mut(id).and_then(|o| o.as_dict_mut().ok()),
                _ => None,
            } {
                dict.set("Producer", Object::string_literal(producer));
            }
        }
    }
/// Change producer of document information dictionary.
Change producer of document information dictionary.
Change producer of document information dictionary .
pub fn change_producer(&mut self, producer: &str) {
        if let Ok(info) = self.trailer.get_mut(b"Info") {
            if let Some(dict) = match *info {
                Object::Dictionary(ref mut dict) => Some(dict),
                Object::Reference(ref id) => self.objects.get_mut(id).and_then(|o| o.as_dict_mut().ok()),
                _ => None,
            } {
                dict.set("Producer", Object::string_literal(producer));
            }
        }
    }
pub fn change_producer ( & mut self , producer : & str ) { if let Ok ( info ) = self . trailer . get_mut ( b" " ) { if let Some ( dict ) = match * info { Object :: Dictionary ( ref mut dict ) => Some ( dict ) , Object :: Reference ( ref id ) => self . objects . get_mut ( id ) . and_then ( | o | o . as_dict_mut ( ) . ok ( ) ) , _ => None , } { dict . set ( " " , Object :: string_literal ( producer ) ) ; } } }
Change producer of document information dictionary.
Change producer of document information dictionary .
&mut self
producer
&str
&mut self
producer
&str