Created attachment 11012 [details] All the files. When the function pdf_clean_page_contents is used and then save the document, it is not saved properly.
Removing the Android tag, as this is an issue with the core API.
mutool clean -s sample.pdf out.pdf calls pdf_clean_page_contents on the supplied file, and it gives a perfectly valid file out. I can only assume this has been fixed already.