You need to call pdf_write_document. However, this was added after the release of version 1.0, so you need to get the latest source code from the Git repository if you want to use it.
I am told that in mupdfclean.c there is code that demonstrates the use of the function.
source
share