docx-rs icon indicating copy to clipboard operation
docx-rs copied to clipboard

2 image problems

Open jiabotao opened this issue 1 year ago • 0 comments

1: when i want resolve images in run ,the 'pic.image' is empty RunChild::Drawing(draw_box) => { let drawing_data = draw_box.data.unwrap(); match drawing_data { DrawingData::Pic(pic) => { println!("fount image"); let pic_image = pic.image; println!("image data size:{}", pic_image.len()) } DrawingData::TextBox(_) => {} } } 2: in impl Pic {},I suggest give a function to reset image:Vec[u8],and hold on other properties mayby like: pub fn reset_image(mut self, image:Vec[u8]) -> Pic { self.image = image; self }

jiabotao avatar Aug 24 '24 17:08 jiabotao