Replies: 1 comment
-
Actually I just found the sanitize_images function, which seems to be written for exactly that purpose. It didn't do anything though, the size was still the same |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using your library to generate powerpoint files, and it works quite well for our use case.
I was wondering if there is some way (supported by the API or just through hacky manipulation of the document) to delete media from a pptx file. Our use case is as follows:
We have a file with various static slides that we use as the base template. Then we reuse the static slides we need, and remove the slides we don't need, and in between we insert generated slides as well. Now this all works, but our file size is not decreasing when we remove the slides, because the referenced pictures (in ppt/media) are not deleted. Is there any way to delete the media?
We also use the speaker notes to identify which slide is which, is there any way we can delete those? We read them through the snippet you shared in #117, it works well. I see set_notes, but it seems we can only add notes through it (if I read the doc correctly)
Beta Was this translation helpful? Give feedback.
All reactions