Open mnmtz opened 8 months ago
If the new image has the same dimensions as the old one, you could maybe get away with replacing the object that contains the image data.
That would work by first finding the correct image ID with the help of Document::get_page_images
.
Then replacing the image with Document::get_object_mut
.
Other than that, you're probably out of luck, as long as nothing better is implemented.
Is there a way to replace an image in a pdf file with another image?